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 validation #6

Open
xcash opened this issue Apr 13, 2017 · 0 comments
Open

Date validation #6

xcash opened this issue Apr 13, 2017 · 0 comments

Comments

@xcash
Copy link
Contributor

xcash commented Apr 13, 2017

The new Chrome is more aggressive on type="date" input fields.

When using formtools the date validation works by the formtools' rules but the browser presents a calendar widget to the user that thus selects a wrong formatted date.

This is not easy to deal with. We must choose if we want to use the browser native field enhancement or block it and use ours.
A simple workaround is using a normal text type but the formtools date validation doesn't kick in and we must validate it manually (via data-ft-regex).

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