-
Notifications
You must be signed in to change notification settings - Fork 17
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
Selection stuck on the first option #43
Comments
This definitely needs to be fixed in future versions.
custom_style.css:
|
Do you mean you want it to auto-highlight the matching option in the options list for the current value? |
Yes, that's what op means. Take a look at native select, it should behave similarly. Although, unlike native select, I suggest separating logic and style for the 'selected' and 'focused' option. |
Any news on this one? I'm using the above hack as well. It would be great if the selection option is highlighted (instead of always the first one) and if the list scrolls such that the selected option is in view (instead of always showing the top of the list). |
Going to look at this in the coming weeks. |
Trying out the demo on https://solid-select.com/, I noticed that the first option always receives
data-focused=true
regardless of user choice. TheonChange
event does reflect that choice but the UI does not. Is there some way to get the UI to show the user's selection?The text was updated successfully, but these errors were encountered: