Wild how far you can push "customizable select" with just #CSS nerdy.dev/nice-select
Post
@nerdy.dev Looks lovely, I’m doing something similar atm. But I’m stuck with wanting to ”remote closing” the menu via JS also. Is there something similar to showPicker - but inverted - coming, do you know? Like hidePicker()
cc @una.im for advice here! picker() is a popover, curious if it can be targetted and closed as such? and sounds like you're already aware of the new showPicker(), not sure what's up with a hidePicker()
0 reposts1 like
::picker() is technically a popover but there is some interaction weirdness (see github.com/whatwg/html/...), which stretches to closePopover(). One way to programmatically close it would be to open (& close) another auto popover to close it (though this is super hacky & we need a better solution)
github.comSelects interplay with popover is sometimes surprising. · Issue #12099 · whatwg/htmlWhat is the issue with the HTML Standard? <!doctype html> <select> <option>One</option> <option>Two</option> <option>Three</option> </select> <select id="s2"> <option>One</option> <option>Two</opti...