Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(useCalendar): grid update condition in watcher #827

Merged

Conversation

epr3
Copy link
Collaborator

@epr3 epr3 commented Apr 6, 2024

Hello,

This PR fixes an issue with the Calendar/RangeCalendar always updating the grid view (with the numberOfMonths prop set to a number greater than 1) when selecting a date on a month other than the first in the grid view, even if the date is part of the visibleView.

EDIT: This PR also makes all props inside useCalendar reactive and adds a watcher to update the CalendarGrid on props update.

cc @sadeghbarati for reporting this 馃殌

Copy link
Collaborator

@zernonia zernonia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 馃ぉ

@zernonia zernonia merged commit fc0f503 into radix-vue:main Apr 7, 2024
2 checks passed
@epr3 epr3 deleted the fix-calendar-placeholder-multiple-month branch April 10, 2024 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants