I'm trying to open up the <select>
list that a browser renders upon a regular click from a <button>
.
I tried
const select = document.querySelector('select');
select.click();
Nothing happens. With .focus()
I get the result I would expect from iOS, but not on Chrome or Android.
Edit
I specifically want to trigger the platform native <select>
picker, not a custom built thing.