←back to thread

497 points tosh | 1 comments | | HN request time: 0.199s | source
Show context
dpcx ◴[] No.43535016[source]
This looks like what web developers have been waiting literally decades for. Possibly replacing (eventually) a bunch of JS libraries to make this all do what we want.

I don't have Chrome installed, but I'm curious how it handles multi-select fields, as I didn't see that in the example video.

replies(2): >>43535107 #>>43535287 #
dqv ◴[] No.43535107[source]
I just tried it in the Codepen and it reverts to a regular old UI element when it has the multiple attribute.

Also just tried it with multiple="multiple" just in case. Same behavior.

replies(2): >>43535194 #>>43535475 #
no_wizard ◴[] No.43535475[source]
Huge miss in my opinion. If it doesn’t support all scenarios I’m not sure what the Chrome team is thinking here
replies(3): >>43535649 #>>43535758 #>>43538897 #
dqv ◴[] No.43535649[source]
I was just wondering how people do a custom <select multiple> now. I guess they make it screen-reader-only and then have aria-hidden checkboxes for everyone else.
replies(1): >>43535912 #
sureIy ◴[] No.43535912[source]
"Select multiple" is just a list of checkboxes. The missing part (which is also missing from select) is just the filtering.

I am not holding my breath for a decent "select multiple" field. It's been the same crap for decades and browsers could have fixed it long again without waiting for spec - it's just a "replaced element", but they don't care.

The fun part is that it looks amazing on Safari iOS (and QED it's rendered as a list of checkboxes)

replies(2): >>43536349 #>>43537571 #
1. mjrpes ◴[] No.43537571[source]
I commented on this a few weeks ago. There are two future components under development that look to support selecting multiple options in a dropdown format.

Search textbox: would be supported under the more customizable Combobox element

Select Multiple: both the Enhanced Select and Combobox plan to support this

Combobox: https://open-ui.org/components/combobox.explainer/

Enhanced Select: https://open-ui.org/components/customizableselect/