mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
prevent click propagation on detached queue button (#1762)
This commit is contained in:
@@ -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}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user