keithamus/invokers-polyfill

Add `<select>` opening as a default behaviour?

Closed this issue ยท 3 comments

While there's currently no JS equivalent to open a select element, I've made whatwg/html#9754 which would add a showPicker() function to select elements.
It would make sense for an auto invoker action on selects to trigger this behaviour.

Much like for inputs (in my PR to this repo), and I imagine for <selectlist> once that proposal is in HTML.

I think there will be work to align with the new <selectlist> element. Right now that spec includes new type= values but perhaps we should discuss what it would look like to leverage invokertarget instead.

Yeah I think <selectlist> probably needs more of a discussion. <select> should hopefully be simple enough once that proposal is accepted.

Perhaps regardless of showPicker on <select> having traction, this is a useful addition for <select>. So I'm ๐Ÿ‘ on this. PRs welcome ๐Ÿ˜„