mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-30 22:31:03 +00:00
feat: rename function
This commit is contained in:
@@ -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(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user