Skip to content

Commit

Permalink
small tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
emmayjiang committed Jun 21, 2023
1 parent fa8ede4 commit d6d4d53
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const useSearchBox_unstable = (props: SearchBoxProps, ref: React.Ref<HTML
});

const onBlur: React.FocusEventHandler<HTMLSpanElement> = useEventCallback(ev => {
setFocused(searchBoxRootRef.current?.contains(ev.relatedTarget) ?? false);
setFocused(!!searchBoxRootRef.current?.contains(ev.relatedTarget));
});

const state: SearchBoxState = {
Expand Down

0 comments on commit d6d4d53

Please sign in to comment.