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

DateField: user can manually to set value to a disabled date #368

Open
abdullahcalisir12 opened this issue May 26, 2024 · 0 comments
Open

Comments

@abdullahcalisir12
Copy link

Currently in the DateField component when disabledDates are set. We can't click a date if it's in disabled dates. But I can type a date and it's being selected.

In the attached video there is an example using reactdatepicker. 25th of May is disabled when I enter 25 and blur the input. Value is being set 2nd of May. but what if 2nd of May is also disabled. Most probably it will set the value to previous acceptable value if there is. If not then clear the input.

https://reactdatepicker.com/#example-date-range-for-one-datepicker-with-disabled-dates-highlighted

Screen.Recording.2024-05-26.at.9.56.21.PM.mov
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

No branches or pull requests

1 participant