Skip to content

Remove flatpickr #5517

Description

@TheSyscall

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions