mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-21 23:05:46 +00:00
8fc1fb6929
The selection's outside-click handler ran on every mousedown outside the .tracklist, and the bulk-action toolbar is a DOM sibling of it. Clicking "Add to playlist" fired mousedown -> clearAll() -> inSelectMode=false, so the toolbar unmounted before the button's onClick could open the picker: selection vanished, no dialog. Skip the clear when the mousedown lands inside .album-track-toolbar (filter, add-to-playlist picker, clear button) — that UI belongs to the selection. Clicks elsewhere (header, empty page) still clear as before.