HTML Date field + up-validate #334
Replies: 2 comments 1 reply
-
|
In case anyone else finds this with the same issue, this is what I've currently done to resolve: You may need to narrow down which inputs this targets depending on requirements though. |
Beta Was this translation helpful? Give feedback.
-
|
This seems to be a standing issue with date inputs. What a mess. A Unpoly 2.6 will allow the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
Has anyone else noticed some weird behaviour when using
up-validateon a HTML date field? I've only checked in Chrome so far, but when you try to enter a date, it seems to trigger the validation request when entering the first character of the year part.This means you end up not being able to complete the year part as when the validate request resolves and the form is re-rendered, the focus on the date field resets so you end up in an infinite loop of entering the day + month + first digit of the year.
Hopefully this GIF helps demonstrate it!
Has anyone found a way of stopping this behaviour so we can have Unpoly trigger validation on date/datetime fields?
Cheers.
Beta Was this translation helpful? Give feedback.
All reactions