Files
Psychotoxical-psysonic/src
Frank Stellmacher 8fc1fb6929 fix(album): bulk "add to playlist" no longer wipes the selection (#842) (#844)
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.
2026-05-21 22:55:26 +02:00
..
2026-05-13 23:13:42 +03:00