mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 13:34:54 +03:00
fix: add handleCloseClick to useEffect dependency
This commit is contained in:
parent
376c0810cd
commit
08fbaf7b59
@ -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