Skip to content

Commit

Permalink
fix: focused date should match selected
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed Feb 16, 2025
1 parent 91876d5 commit 098e507
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/useCalendar/useCalendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ export function useCalendar(_props: Reactivify<CalendarProps, 'field' | 'schema'

function setDate(date: ZonedDateTime, view?: CalendarViewType) {
temporalValue.value = date;
focusedDay.value = date;
if (view) {
setView(view);
} else if (currentView.value.type === 'weeks') {
Expand Down

0 comments on commit 098e507

Please sign in to comment.