| ▲ | DangitBobby 3 hours ago | ||||||||||||||||||||||
I was excited about the native date picker and tried to use it once, only to discover that you couldn't (can't still, I assume) disable dates other than by setting min and max. Every native browser widget I've tried to use doesn't implement the features my clients expect, so I don't use them. People want a better web platform and the only way to get it is JavaScript. | |||||||||||||||||||||||
| ▲ | JimDabell 2 hours ago | parent | next [-] | ||||||||||||||||||||||
Yep. “We need a date picker to schedule a visit.” “Okay, use `<input type=date>`” “It needs to be a date in the future.” “No problem, add a `min="2026-10-05"` attribute.” “And we’re only available on weekdays.” “Okay, throw the native date picker away completely and build one yourself from scratch.” Did nobody involved ever bother to ask what the requirements were for a date picker? Excluding dates is one of the most common requirements there is! | |||||||||||||||||||||||
| |||||||||||||||||||||||
| ▲ | otherme123 2 hours ago | parent | prev [-] | ||||||||||||||||||||||
But also custom date pickers are the most broken thing you can find everywhere. Browse with a combination of browser/phone the developer didn't test, and you can't pick even the most basic single date. The most blatant are the fancy range pickers, instead of two date picker boxes: I have been pushed to a desktop browser because the mobile renders half of it off-screen, or don't hold open after tapping the start date, or works by dragging but breaks on single taps... | |||||||||||||||||||||||
| |||||||||||||||||||||||