We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
handleClick
useSameTarget
1 parent 86bddbb commit 4bb72c1Copy full SHA for 4bb72c1
packages/components/dialog/hooks/useSameTarget.ts
@@ -5,7 +5,7 @@ export function useSameTarget(handleClick?: (e: MouseEvent) => void) {
5
6
const onClick = (e: MouseEvent) => {
7
if (MOUSEDOWN_TARGET && MOUSEUP_TARGET) {
8
- handleClick(e);
+ handleClick?.(e);
9
}
10
MOUSEDOWN_TARGET = false;
11
MOUSEUP_TARGET = false;
0 commit comments