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

Datepicker | onDateChange | There should be a way to identify if the user enters an invalid date manually #2021

Open
WebDevRaj opened this issue Nov 5, 2023 · 0 comments

Comments

@WebDevRaj
Copy link

Summary

Currently if the user enters any invalid date manually (out of the defined range) in the input, there is no way to identify the value as the onDateChange method gives us undefined in this case which is same as empty value. So we are unable to handle form validations as invalid value is treated as empty value.

Basic example

There should be a way to differentiate empty values with invalid values in the onDateChange method

Motivation

Handle invalid values in form validation, show specific user friendly errors and disable/enable submit button accordingly

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