4 ms·
“You will likely have to roll your own components such as date pickers.” Anyone else think it’s insane that we’re still implementing JS date pickers in 2021? H
by rapind 5y ago
“You will likely have to roll your own components such as date pickers.”
Anyone else think it’s insane that we’re still implementing JS date pickers in 2021? How was this not native like 20 years ago?
- spoiler 5y agoThere are native solutions in browsers. I think they mean that they'd have to use their own custom "rust to dom" ones, if they didn't like the native browser ones (they do have some limitations around styling and formatting)
- rapind 5y agoVery very recently some do, and they aren't amazing. I'm not even sure Firefox 93 is officially released yet? Safari support was less than a year ago. https://caniuse.com/?search=datetime-local https://caniuse.com/?search=datetime-local Don't get me wrong. I'm glad we finally have some consensus, but this should have happened before ES6 (2015!) IMO. jQuery had a date picker before 2009 at least (probably earlier, but I'm not sure).
- dragonwriter 5y ago> How was this not native like 20 years ago? Date inputs were standardized with HTML5, but browser implementations are of variable quality (and, important to designers, variable default look-and-feel, and limited, IIRC, customizability).