Skip to content

Commit

Permalink
chore: ssr: reverts unnecessary change to mouse down event
Browse files Browse the repository at this point in the history
  • Loading branch information
dkilgore-eightfold committed Jan 9, 2024
1 parent 602dada commit 1a77bf6
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,7 @@ export default function usePickerInput({
}, [value]);

// Global click handler
useEffect(() => {
if (!canUseDom()) {
return;
}
useEffect((): (() => void) =>
addGlobalMouseDownEvent((e: MouseEvent): void => {
const target: HTMLElement = getTargetFromEvent(e);

Expand All @@ -188,8 +185,8 @@ export default function usePickerInput({
triggerOpen(false);
}
}
});
});
})
);

return [inputProps, { focused, typing }];
}

0 comments on commit 1a77bf6

Please sign in to comment.