mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-02 16:23:48 +03:00
fix: add handleCloseClick to useEffect dependency
This commit is contained in:
parent
8e93ec9768
commit
981b7266a3
@ -57,7 +57,7 @@ export function Modal({
|
||||
|
||||
window.addEventListener("keydown", onKeyDown);
|
||||
return () => window.removeEventListener("keydown", onKeyDown);
|
||||
}, []);
|
||||
}, [handleCloseClick]);
|
||||
|
||||
useEffect(() => {
|
||||
const onMouseDown = (e: MouseEvent) => {
|
||||
@ -74,7 +74,7 @@ export function Modal({
|
||||
|
||||
window.addEventListener("mousedown", onMouseDown);
|
||||
return () => window.removeEventListener("mousedown", onMouseDown);
|
||||
}, []);
|
||||
}, [handleCloseClick]);
|
||||
|
||||
useEffect(() => {
|
||||
dispatch(toggleDragging(visible));
|
||||
|
Loading…
Reference in New Issue
Block a user