Skip to content

Commit ceb36fc

Browse files
committed
chore: Click out of window will not close picker
1 parent 8a5ec2f commit ceb36fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/usePickerInput.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export default function usePickerInput({
9090
},
9191

9292
onBlur: e => {
93-
if (preventBlurRef.current) {
93+
if (preventBlurRef.current || !isClickOutside(document.activeElement)) {
9494
preventBlurRef.current = false;
9595
return;
9696
}

0 commit comments

Comments
 (0)