Skip to content

Commit

Permalink
fix: Searchbar focus()
Browse files Browse the repository at this point in the history
Closes #2393, #2394
  • Loading branch information
wodCZ committed Mar 6, 2021
1 parent 975cfa3 commit 44fe30c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/Searchbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ const Searchbar = React.forwardRef<TextInputHandles, Props>(

if (input) {
return {
focus: input.focus,
clear: input.clear,
focus: () => input.focus(),
clear: () => input.clear(),
setNativeProps: (args: TextInputProps) => input.setNativeProps(args),
isFocused: input.isFocused,
blur: input.blur,
isFocused: () => input.isFocused(),
blur: () => input.blur(),
};
}

Expand Down

0 comments on commit 44fe30c

Please sign in to comment.