fix(Calendar): fix reading getFullYear error (#10908)
This commit is contained in:
@@ -299,7 +299,9 @@ 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];
|
||||||
scrollToDate(targetDate);
|
if (targetDate) {
|
||||||
|
scrollToDate(targetDate);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
raf(onScroll);
|
raf(onScroll);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user