Skip to content

Commit b6425fc

Browse files
author
Michael Jordan
authored
fix(#3800): MobileSearchAutocomplete: focused style persists on blur (#3801)
* fix(#3800): MobileSearchAutocomplete: focused style persists on blur by making useFocus results chainable
1 parent 79f62e8 commit b6425fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@react-aria/interactions/src/useFocus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export function useFocus(props: FocusProps): FocusResult {
7575
return {
7676
focusProps: {
7777
onFocus: (!isDisabled && (onFocusProp || onFocusChange || onBlurProp)) ? onFocus : undefined,
78-
onBlur: (!isDisabled && (onBlurProp || onFocusChange)) ? onBlur : null
78+
onBlur: (!isDisabled && (onBlurProp || onFocusChange)) ? onBlur : undefined
7979
}
8080
};
8181
}

0 commit comments

Comments
 (0)