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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Spread disabled dates before modifying them #1361

Merged
merged 1 commit into from
Sep 10, 2023
Merged

Conversation

Ubax
Copy link

@Ubax Ubax commented Aug 17, 2023

Modifying the array passed as a prop can create bugs, that are hard to debug. For example changing minDate will change disabledDates. Especially if the value passed to the prop is computed, it is very hard to spot the problem.

@nathanreyes nathanreyes merged commit f8a58a0 into nathanreyes:v3 Sep 10, 2023
@nathanreyes
Copy link
Owner

Thanks for the contribution.

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

3 participants