mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-06 20:10: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 {
|
||||
onClose?: () => void;
|
||||
onToggle?: () => void;
|
||||
onToggle?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
||||
opened?: boolean;
|
||||
}
|
||||
|
||||
|
||||
@@ -170,7 +170,10 @@ const QueueButton = () => {
|
||||
return (
|
||||
<PopoverPlayQueue
|
||||
onClose={handlePopoverClose}
|
||||
onToggle={handleToggleQueue}
|
||||
onToggle={(e) => {
|
||||
e.stopPropagation();
|
||||
handleToggleQueue();
|
||||
}}
|
||||
opened={popoverOpened}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user