mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Calendar): reading getFullYear error in some cases (#10909)
This commit is contained in:
parent
c3776877ca
commit
e5cc32ca97
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user