html icon indicating copy to clipboard operation
html copied to clipboard

Consider adding auto-sizing for <select> as a listbox

Open zcorpan opened this issue 3 years ago • 0 comments

Similar to https://github.com/whatwg/html/issues/6807 but for <select multiple> / <select size=2>

There's no way without JS to specify that a listbox select should have the same height as its contents.

Anecdotal example of a requests for this (found by searching "auto-size select multiple"):

https://stackoverflow.com/questions/9943886/make-multiple-select-to-adjust-its-height-to-fit-options-without-scroll-bar

Do UI libraries typically have a "<select> as a listbox" widget? For those that do, can it auto-size?

cc @whatwg/forms @mfreed7

zcorpan avatar Aug 11 '22 15:08 zcorpan