2 ms·
i think the problem with datalist is the default styles, and the lack of customizability (eg if you want multiple slections, or to display descriptions or image
by swyx 4y ago
i think the problem with datalist is the default styles, and the lack of customizability (eg if you want multiple slections, or to display descriptions or images next to each choice, or you want fuzzy matching). most of the time you'll just want to go ahead and import a ComboBox component someone else has made
- timw4mail 4y agoThe problem is more the inconsistent behavior. Styling is also a concern, but why doesn't the Option element behave the same in a datalist as in a select? (I think only Firefox actually does this properly).