DEV Community

Discussion on: HTML can do that?

Collapse
 
ozzyogkush profile image
Derek Rosenzweig

Nice, the datalist is one I'll have to definitely look at. The frontend team at my job is building out a new set of components for our apps, including various dropdown/filterable elements. Same with details.

Collapse
 
stephanie profile image
Stephanie Handsteiner

I was thinking the same, although you'd still need some kind of JavaScript fallback for older browsers, even for the datalist one. Safari for example is supporting that since 12.1. (macOS) and 12.2. (iOS) only.

Collapse
 
ozzyogkush profile image
Derek Rosenzweig

thankfully we only have to support latest FF, Chrome, and soon Edge. i'm ok with that.

Collapse
 
atomicwrites profile image
David Castro

I found this when trying to make a searchable drop-down, and it's almost perfect except I couldn't make it show all options when it first recieves focus. So annoying.

Collapse
 
ozzyogkush profile image
Derek Rosenzweig

if you were trying in firefox i think there's a known issue around that. caniuse.com may have some info on that