Popover keybind state fix (#1593)

Update Popover.tsx
This commit is contained in:
ameer2468
2023-10-15 14:32:44 +03:00
committed by GitHub
parent ba9948d457
commit 4b37d71efe

View File

@@ -28,7 +28,7 @@ export const Popover = ({ popover, trigger, children, disabled, className, ...pr
useKeys(props.keybind ?? [], (e) => {
if (!props.keybind) return;
e.stopPropagation();
popover.setOpen(!open);
popover.setOpen((o) => !o);
});
useEffect(() => {