fix(Calendar): reading getFullYear error in some cases (#10909)
This commit is contained in:
@@ -299,7 +299,7 @@ export default defineComponent({
|
|||||||
props.type === 'single'
|
props.type === 'single'
|
||||||
? (currentDate.value as Date)
|
? (currentDate.value as Date)
|
||||||
: (currentDate.value as Date[])[0];
|
: (currentDate.value as Date[])[0];
|
||||||
if (targetDate) {
|
if (isDate(targetDate)) {
|
||||||
scrollToDate(targetDate);
|
scrollToDate(targetDate);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user