-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
When triggering events that change the selection, the dropdown UI keeps previous selections highlighted #6255
Comments
well it's an interesting one temporary solution |
Thanks @VUcodes, this work around seemed to work. However, I do feel that adding the triggers for |
I found that this always happens on multi-selects. When clearing them normally |
I have exactly the same problem with "multiple" selection and Reproduce the problem: https://jsfiddle.net/amrz429c/2/ The options are selected when the dropdown menu is closed and opened after |
When using multi select, and trigger events on select, the UI in the dropdown does not reflect the change. In this JSBin I have a selection with months. When you select January an event will be triggered to change the input to December, which works. However, the UI keeps the previous selections highlighted.
It seems like
aria-selected
is not getting updated in the<li>
elements.Steps to reproduce:
Select2 version: 4.0.6
Browsers:
MacOS 13.4
Screenshots:
The text was updated successfully, but these errors were encountered: