We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae4b0a9 commit 62d75d5Copy full SHA for 62d75d5
1 file changed
ui/main.tsx
@@ -130,6 +130,7 @@ const App = () => {
130
}, { current: document.body })
131
132
const closeOnClickOutside = (ev: JSXInternal.TargetedMouseEvent<HTMLDialogElement>) => {
133
+ if (/* undefined or 0 */!ev.clientX || !ev.clientY) { return }
134
const rect = ev.currentTarget.getBoundingClientRect()
135
if (rect.left <= ev.clientX && ev.clientX < rect.right &&
136
rect.top <= ev.clientY && ev.clientY < rect.bottom) { return }
0 commit comments