Flatpickr is intented as a polyfill to provide a date/time picker UI for browsers that lacked native support for <input type="datetime-local">, most notably Firefox, which did not support it at the time of implementation. #4483
Both Firefox and Safari have since shipped native support.
Both show a date picker and allow the user to modify the time manually.
Despite this, datetime-picker.js continues to check for native browser support and skips initializing Flatpickr when it detects it. Because modern Firefox and Safari both pass that check, Flatpickr is never actually activated in any browser our users run today.
In practice, no one has seen the Flatpickr UI in years.
MDN reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/datetime-local#browser_compatibility
Removing Flatpickr will not lead to any visual or functional regression since it hasn't been active in the first place.
- Remove Flatpickr as a dependency
- Remove the
datetime-picker behavior
Alternative
Browser fingerprint Firefox and Safari. Both browsers ship a broken implementation of the date time picker which doesn't allow selecting the time. Flatpickr could be useful to provide a fallback here.
Flatpickr is intented as a polyfill to provide a date/time picker UI for browsers that lacked native support for
<input type="datetime-local">, most notably Firefox, which did not support it at the time of implementation. #4483Both Firefox and Safari have since shipped native support.
Both show a date picker and allow the user to modify the time manually.
Despite this, datetime-picker.js continues to check for native browser support and skips initializing Flatpickr when it detects it. Because modern Firefox and Safari both pass that check, Flatpickr is never actually activated in any browser our users run today.
In practice, no one has seen the Flatpickr UI in years.
MDN reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/datetime-local#browser_compatibility
Removing Flatpickr will not lead to any visual or functional regression since it hasn't been active in the first place.
datetime-pickerbehaviorAlternative
Browser fingerprint Firefox and Safari. Both browsers ship a broken implementation of the date time picker which doesn't allow selecting the time. Flatpickr could be useful to provide a fallback here.