prevent click propagation on detached queue button (#1762)

This commit is contained in:
jeffvli
2026-02-27 00:53:09 -08:00
parent afca396654
commit 934851456b
2 changed files with 5 additions and 2 deletions
@@ -12,7 +12,7 @@ import { ItemListKey } from '/@/shared/types/types';
interface PopoverPlayQueueProps { interface PopoverPlayQueueProps {
onClose?: () => void; onClose?: () => void;
onToggle?: () => void; onToggle?: (e: React.MouseEvent<HTMLButtonElement>) => void;
opened?: boolean; opened?: boolean;
} }
@@ -170,7 +170,10 @@ const QueueButton = () => {
return ( return (
<PopoverPlayQueue <PopoverPlayQueue
onClose={handlePopoverClose} onClose={handlePopoverClose}
onToggle={handleToggleQueue} onToggle={(e) => {
e.stopPropagation();
handleToggleQueue();
}}
opened={popoverOpened} opened={popoverOpened}
/> />
); );