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

Validate dates typed or pasted into the input field #34

Open
Chris78 opened this issue Oct 9, 2024 · 0 comments
Open

Validate dates typed or pasted into the input field #34

Chris78 opened this issue Oct 9, 2024 · 0 comments

Comments

@Chris78
Copy link

Chris78 commented Oct 9, 2024

If someone types/pastes "31.11.2024" for example show that this date is invalid.
It should be assumed it is in the format, that was specified via 'datepicker-format-value' to detect if it's valid (so 13.01.2024 is valid for '%d.%m.%Y', however it's invalid for '%m.%d.%Y').

I could imagine different possibilities:

  • add red border to the text field
  • open the calendar to select a valid date and show "invalid date" message in the calendar

Maybe even both will combine well.

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