You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the allowInput functionality alongside the enableTime flag, inputting dates directly no longer works. To reproduce:
go to the fiddle
select a date/time
close the picker
click on the input again
type in a new date
click another part of the page
The picker will revert back to the previous value
When using enableTime: false, clicking on another part of the page would keep the newly input date.
Oddly, if you press enter or tab instead of just clicking out of the calendar, the Date is updated correctly. Did some digging to see what kind of issue it might be, and I think it may have to do with the blur event triggering twice, the first time setting the input field to what's currently selected in the picker widget and the second time it updates the internal date based on the input value (which is now whatever was selected in the picker). No idea why this only becomes a problem when using date+time.
When using the
allowInput
functionality alongside theenableTime
flag, inputting dates directly no longer works. To reproduce:When using
enableTime: false
, clicking on another part of the page would keep the newly input date.Oddly, if you press
enter
ortab
instead of just clicking out of the calendar, the Date is updated correctly. Did some digging to see what kind of issue it might be, and I think it may have to do with the blur event triggering twice, the first time setting the input field to what's currently selected in the picker widget and the second time it updates the internal date based on the input value (which is now whatever was selected in the picker). No idea why this only becomes a problem when using date+time.https://jsfiddle.net/dv2qbeyp/
Your Environment
The text was updated successfully, but these errors were encountered: