mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 08:37:23 +00:00
fix(Calendar): reading getFullYear error in some cases (#10909)
This commit is contained in:
@@ -299,7 +299,7 @@ export default defineComponent({
|
||||
props.type === 'single'
|
||||
? (currentDate.value as Date)
|
||||
: (currentDate.value as Date[])[0];
|
||||
if (targetDate) {
|
||||
if (isDate(targetDate)) {
|
||||
scrollToDate(targetDate);
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user