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

pat-validation: Validate a date input which was changed to text. #1182

Open
thet opened this issue Oct 17, 2023 · 0 comments
Open

pat-validation: Validate a date input which was changed to text. #1182

thet opened this issue Oct 17, 2023 · 0 comments

Comments

@thet
Copy link
Member

thet commented Oct 17, 2023

There are cases where a <input type="date"> is changed to <input type="text"> by pat-date-picker:

  1. If a browser does not support the date type (should be rare these days),
  2. If we want to prevent the native date picker but use the JS one (e.g. for i18n where the browser language is different from the websites's UI language, where we need to support options not available with the native date picker, ...)

The date validation should then still be active. For that we need some changes in pat-validation. E.g. pat-validation validating text inputs with a pat-date-picker class.

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