diff --git a/packages/vant/src/calendar/Calendar.tsx b/packages/vant/src/calendar/Calendar.tsx index 5957a7671..325aef8b8 100644 --- a/packages/vant/src/calendar/Calendar.tsx +++ b/packages/vant/src/calendar/Calendar.tsx @@ -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); }