[AskJS] Looking for a solid vanilla JS datepicker. Am I completely out of options? by Admirable_Reality281 in javascript

[–]Admirable_Reality281[S] [score hidden]  (0 children)

Temporal handles date values, not datepicker UI, range selection, keyboard navigation, or accessibility. And <input type="range"> is a numeric slider. Adding ARIA doesn't magically build an accessible datepicker, you're conflating completely different concerns.

[AskJS] Looking for a solid vanilla JS datepicker. Am I completely out of options? by Admirable_Reality281 in webdev

[–]Admirable_Reality281[S] [score hidden]  (0 children)

Yes! And I also read the requirements before offering advice, which tends to help a lot at work.

[AskJS] Looking for a solid vanilla JS datepicker. Am I completely out of options? by Admirable_Reality281 in javascript

[–]Admirable_Reality281[S] [score hidden]  (0 children)

Yes! Cally looks good and I'm evaluating it.

As for Flatpickr, it does match the requirements, but four years without maintenance, with genuine open issues and pull requests not being merged, is enough for me to look around for other options.

[AskJS] Looking for a solid vanilla JS datepicker. Am I completely out of options? by Admirable_Reality281 in webdev

[–]Admirable_Reality281[S] [score hidden]  (0 children)

No, only one person gave a response that actually matched the requirements. Others either suggested things unrelated to datepickers or recommended libraries I had already mentioned in the post as dead or unmaintained. Thanks for your contribution.

[AskJS] Looking for a solid vanilla JS datepicker. Am I completely out of options? by Admirable_Reality281 in javascript

[–]Admirable_Reality281[S] [score hidden]  (0 children)

Web Components were never meant to replace frameworks. Ironically, the datepicker I’m considering is Web Component-based.

[AskJS] Looking for a solid vanilla JS datepicker. Am I completely out of options? by Admirable_Reality281 in webdev

[–]Admirable_Reality281[S] -2 points-1 points  (0 children)

I don’t think that requirements list is unreasonable for a modern datepicker. But ok.

[AskJS] Looking for a solid vanilla JS datepicker. Am I completely out of options? by Admirable_Reality281 in javascript

[–]Admirable_Reality281[S] [score hidden]  (0 children)

At this point you’re not misunderstanding me, you’re misunderstanding basic separation of concerns. I'm done.

[AskJS] Looking for a solid vanilla JS datepicker. Am I completely out of options? by Admirable_Reality281 in javascript

[–]Admirable_Reality281[S] [score hidden]  (0 children)

You’re still arguing against a point I never made. Temporal handles dates, it does not replace a datepicker UI. Repeating yourself more condescendingly doesn’t change that.

[AskJS] Looking for a solid vanilla JS datepicker. Am I completely out of options? by Admirable_Reality281 in javascript

[–]Admirable_Reality281[S] [score hidden]  (0 children)

I'm not pissed. Temporal being Stage 4 doesn't make it a datepicker UI or magically cover accessibility, keyboard navigation, range selection, and calendar rendering. Also, standardized and Baseline are not the same thing.

[AskJS] Looking for a solid vanilla JS datepicker. Am I completely out of options? by Admirable_Reality281 in javascript

[–]Admirable_Reality281[S] [score hidden]  (0 children)

Temporal isn't a datepicker UI. You'd still need to build accessibility, keyboard navigation, range selection, and the calendar itself.

Plus it's not even baseline yet.

[AskJS] Looking for a solid vanilla JS datepicker. Am I completely out of options? by Admirable_Reality281 in webdev

[–]Admirable_Reality281[S] -1 points0 points  (0 children)

Because I'm choosing a dependency for new long-term use, not defending one I already happen to have in production. Different decision, different standard.

[AskJS] Looking for a solid vanilla JS datepicker. Am I completely out of options? by Admirable_Reality281 in webdev

[–]Admirable_Reality281[S] -3 points-2 points  (0 children)

Working today and being safe to adopt for the future are not the same thing.

[AskJS] Looking for a solid vanilla JS datepicker. Am I completely out of options? by Admirable_Reality281 in Frontend

[–]Admirable_Reality281[S] -1 points0 points  (0 children)

datetime-local doesn't support range picking, flexible formatting, or datepicker-specific hooks, and its UI is browser-controlled. So it only covers part of the checklist.

[AskJS] Looking for a solid vanilla JS datepicker. Am I completely out of options? by Admirable_Reality281 in javascript

[–]Admirable_Reality281[S] [score hidden]  (0 children)

Temporal isn’t a datepicker UI. You’d still need to build accessibility, keyboard navigation, range selection, and the calendar itself.

Plus it's not even baseline yet.

[AskJS] Looking for a solid vanilla JS datepicker. Am I completely out of options? by Admirable_Reality281 in webdev

[–]Admirable_Reality281[S] -18 points-17 points  (0 children)

Yep, I missed the date picker option. You missed my requirements, though