3 ms·
How have I never heard of this! It's like a native autocomplete-like select box. These are usually implemented in JS... Also seems to be [1] widely supported w
by gitgud 5y ago
How have I never heard of this! It's like a native autocomplete-like select box. These are usually implemented in JS...
Also seems to be [1] widely supported with around 95% of all internet browsers supporting it.
[1] https://caniuse.com/datalist https://caniuse.com/datalist
- dkzlv 5y agoUnfortunately, it's not that good. There are a lot of strange and inconsistent behaviors related to this tag. That's why nobody uses it, and that's why you've never heard of it. Imo, it's only suitable for ultra-narrow use cases, mostly prototyping.
- postalrat 5y agoIf people start using it maybe it will get some love.
- Phillips126 5y agoI felt the same way when I discovered this element about a year ago. Each time I try to use it I always find it falling short of what I need it to do. It's incredibly limited in what can be styled with CSS, doesn't have the ability to have multiple values and there is no max-height to the dropdown. I've seen the dropdown grow so large it clips out of the browser itself - which might have been a bug that is now resolved.