mirror of
https://github.com/gnmyt/myspeed.git
synced 2026-05-03 10:29:42 -05:00
Fix bug in DialogContext.jsx
This commit is contained in:
@@ -37,6 +37,8 @@ export const DialogProvider = (props) => {
|
||||
}
|
||||
|
||||
document.addEventListener("mousedown", handleClick);
|
||||
|
||||
return () => document.removeEventListener("mousedown", handleClick);
|
||||
}, [ref]);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user