brianvoe / slim-select

Slim advanced select dropdown
http://slimselectjs.com
MIT License
1.03k stars 195 forks source link

ClearAll icon not showing while selecting all #506

Closed Oute-Oute closed 8 months ago

Oute-Oute commented 8 months ago

Describe the bug When selecting all a group, the "clearAll-Icon" does not display, but if you first select a value then select all a group, it will display (see first gif below) It's usually not a problem because you have the small "unselectAll" button but in my case it's a problem because i put all my values in a group, which allow me to search a part of the value to select all values matching, but if i do this multiple times, to clear my selected values i have to select then deselect all values with the button (see 2nd gif)

Screenshots

ss-bug

ss-bug-v2

brianvoe commented 8 months ago

I updated it to reevaluate the deselect button after each values render.

Just published v2.8.1

If you find that helpful consider donating. https://github.com/sponsors/brianvoe