Skip to content

fix: max and min options, clone the date options to not cause issues of manipulating the wrong reference #59

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kibolho
Copy link

@kibolho kibolho commented Jul 11, 2024

We can't manipulate date references without clone it, otherwise it will change the original value:
image
So this was causing some issues with the max and min limits in the goToPrevNext function.
So this PR fix this issue by cloning the date object:
const newDate = new Date(date.getTime());
And also fixing some layout issues to represent the disabled date values

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.

1 participant