Hey, first of all, gr8 plugin...I used select2 3,4,1, and in that version, when you select item, it was removed from drop down...now its just grayed out...Is there a way to remove it instead of gray it out? Thanks in advance
There's a classic theme that you can use you get back then old theme, which includes removing the gray background for selected options.
https://select2.github.io/examples.html#themes
You can also just hide the selected options with
.select2-results__option--highlighted[aria-selected=true] {
display: none;
}
I tried this but it doesnt seem to work well.
This one worked well for me -
.select2-results__option[aria-selected="true"] {
display: none;
}
Most helpful comment
I tried this but it doesnt seem to work well.
This one worked well for me -
.select2-results__option[aria-selected="true"] {
display: none;
}