-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the filter by text feature work with <select> elements #80
Comments
This happens when I use the Tab key to focus the selects as well, so it doesn’t seem like a Link Hints issue. |
Odd, I can tab over to the selects select-tabbing.mp4 |
I’m not able to play the video, unfortunately. What do you mean by “tab over”? |
Tab over as in pressing tab until the select element is focused (as i assume that's what you mean by [using] the Tab key to focus the selects). Try playing the video in mpv or vlc |
The video worked in VLC. I misunderstood what you meant. I didn’t get that you used the filter by text feature. It makes sense to me now. |
Decided to try to figure out what to do for selects with "use strict";
let observer = new IntersectionObserver(function (entries) {
for (let entry of entries) {
console.log(entry.target, "is intersecting?", entry.isIntersecting);
}
}, {});
for (let option of document.querySelector("select").options) {
observer.observe(option);
} I can't find a way to see when the header of an optgroup is on screen though. Also, you'd probably want to only focus the select instead of an option, since you would have to take into account other options that were already selected. |
Steps to reproduce
Screenshots
Description
When you try to acivate a <select> by typing the text of its current value, it doesn't get activated. I'm not sure what to do for elements with
multiple
thoughDebug info
Debug info
The text was updated successfully, but these errors were encountered: