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
As of Chrome 83, where input fields were redesigned for visual consistency, the date input no longer has a "clear" button (x). This means that the only way to clear a date once entered is to individually select and backspace/delete each component (day, month and year).
Although a nuisance, that wouldn't be quite such a problem - but Chrome doesn't (and already didn't) fire the oninput event when the second and third date components are cleared, only when the first is cleared. When the first component is cleared, inputElement.validity.badInput is true - so the field is marked as invalid... but since there are no subsequent oninput events, it never gets marked as valid again.
The text was updated successfully, but these errors were encountered:
pauln
added a commit
to pauln/ember-paper
that referenced
this issue
Jun 5, 2020
Chrome 83 has removed the clear button from date inputs, which means that there's now no way to clear a date field and have its validity state correctly updated. Since the `oninput` event fired when the first date component is cleared provides an empty string as the new value, we can detect this and override `validity.badInput` to immediately update our validity state in order to avoid leaving the field permanently flagged as invalid.
Fixesadopted-ember-addons#1153
Chrome 83 has removed the clear button from date inputs, which means that there's now no way to clear a date field and have its validity state correctly updated. Since the `oninput` event fired when the first date component is cleared provides an empty string as the new value, we can detect this and override `validity.badInput` to immediately update our validity state in order to avoid leaving the field permanently flagged as invalid.
Fixes#1153
As of Chrome 83, where input fields were redesigned for visual consistency, the date input no longer has a "clear" button (
x
). This means that the only way to clear a date once entered is to individually select and backspace/delete each component (day, month and year).Although a nuisance, that wouldn't be quite such a problem - but Chrome doesn't (and already didn't) fire the
oninput
event when the second and third date components are cleared, only when the first is cleared. When the first component is cleared,inputElement.validity.badInput
is true - so the field is marked as invalid... but since there are no subsequentoninput
events, it never gets marked as valid again.The text was updated successfully, but these errors were encountered: