I have a simple webform with a couple of fields. I have a date/time field with both date and time. Everything works great, except in Firefox where the time and date inputs are not supported.
The date fallback works very good. But the time fallback crashes Firefox. I notice that $input.data('webformTimeFormat') is not set, but I don't know if that's the reason.
Could be related to https://www.drupal.org/node/2834027
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | timepicker_js_fallback-2840391-3.patch | 1.09 KB | jrockowitz |
Comments
Comment #2
andeersg commentedForgot to mention, I encountered this on macOS, with Firefox 50.1 and Firefox ESR.
Comment #3
jrockowitz commentedDefinitely related to #2834027: Jquery Timepicker script error for Mozilla Firefox..
The datatime element's step attribute is defaulting to 1 second increments while the timepicker fallback is looking for seconds.
Comment #5
jrockowitz commentedComment #6
andeersg commentedWow, that was quick. It works now :)
But it does not seem like it respects the time and date format from webform settings.
Comment #7
jrockowitz commentedThe timepicker definitely has limitations especially when used as the fallback to a datetime element.
You should follow #1838234: Add jQuery Timepicker for the Time element of the datetime field and see how core decides to integrate the timepicker.