fix(Calendar): fix reading getFullYear error (#10908)

This commit is contained in:
neverland
2022-08-13 11:43:15 +08:00
committed by GitHub
parent 7eaefd04fa
commit c3776877ca
+3 -1
View File
@@ -299,7 +299,9 @@ export default defineComponent({
props.type === 'single'
? (currentDate.value as Date)
: (currentDate.value as Date[])[0];
scrollToDate(targetDate);
if (targetDate) {
scrollToDate(targetDate);
}
} else {
raf(onScroll);
}