mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 00:33:49 +03:00
feat: rename function
This commit is contained in:
parent
c6facbe253
commit
840e45033c
@ -59,7 +59,7 @@ export function Modal({
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const onMouseUp = (e: MouseEvent) => {
|
const onMouseDown = (e: MouseEvent) => {
|
||||||
if (!isTopMostModal()) return;
|
if (!isTopMostModal()) return;
|
||||||
|
|
||||||
const modalContent = document.getElementById(
|
const modalContent = document.getElementById(
|
||||||
@ -73,8 +73,8 @@ export function Modal({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
window.addEventListener("mousedown", onMouseUp);
|
window.addEventListener("mousedown", onMouseDown);
|
||||||
return () => window.removeEventListener("mousedown", onMouseUp);
|
return () => window.removeEventListener("mousedown", onMouseDown);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user