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

Date picker resets the date to nearest valid date when a users manually enters a date that is less than min date or greater than max date. #316

Open
Knksumanth opened this issue Jul 8, 2020 · 0 comments

Comments

@Knksumanth
Copy link

Knksumanth commented Jul 8, 2020

This isnt really an issue., but there should be a way to figure out when this happens and to show a message to user.

To detect this change, I found that in the date object , there is an overflow flag which is set to -2 when a invalid date is picked and -1 when valid date is picked. I have tried many times with many different dates and although I am sure that I can go ahead and use this value to detect this kind of auto changing of the date., I also wanted to check if there is any better way of either stopping this auto resetting of the date, or right way to detect this change/date reset.?

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