logoalt Hacker News

appplicationyesterday at 5:23 PM5 repliesview on HN

This was a fun little read. Just through testing the examples, I also learned datalist does not seem to work well on mobile safari (which is a large enough market I might even say there’s essentially no scenario in which it’s worth using if there’s a compatibility issue).


Replies

tshaddoxyesterday at 8:05 PM

The datalist examples definitely work on my iPhone. They integrate into the autocomplete suggestions above the native iOS keyboard. There’s no way to browse all the suggestions, but I suppose that’s not an intended use case for datalist.

However, the disabled attr on group definitely does not work!

show 2 replies
VorpalWayyesterday at 7:23 PM

Doesn't work with Firefox on Android either.

MattGaiseryesterday at 5:49 PM

Way back when I was working my first job, datalist didn’t work on Firefox. That’s what got Firefox removed from the list of supported browsers.

It has been a problem for a long time if you want to support anything other than Chrome.

show 1 reply
carlosjobimyesterday at 6:40 PM

They work well but not with GBoard on iOS.

masswerkyesterday at 7:40 PM

Mind that input + datalist is the HTML equivalent of the Windows combobox, once generally regarded as the worst UI element ever. (This was enjoying meme status in usability related articles and write-ups. So probably not a recommendation.)