DEV Community

Discussion on: Creating A Custom, Accessible Drop Down

Collapse
 
niorad profile image
Antonio Radovcic

As soon as you need integrated search, or icons on the options, the native select won't do. And sometimes you can't talk the client out of it.

Maybe this would work well as Web-Component, also.

Collapse
 
equinusocio profile image
Mattia Astorino • Edited

Maybe this would work well as Web-Component, also.

Yes this is a classic use case for web components, and if you can't make a web component you should just use both native and custom elements. BTW You can already make a native select with search using the <datalist> element that is being implemented.

jsfiddle.net/equinusocio/yj9fb7Lx/4/