Skip to content

Commit

Permalink
Merge pull request #43338 from badeggg/try3-fix-42916-loop-crash
Browse files Browse the repository at this point in the history
  • Loading branch information
blimpich authored Jun 10, 2024
2 parents e66ae37 + 092c86a commit fd91056
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hooks/useAutoFocusInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ export default function useAutoFocusInput(): UseAutoFocusInput {

const inputCallbackRef = (ref: TextInput | null) => {
inputRef.current = ref;
if (isInputInitialized) {
return;
}
setIsInputInitialized(true);
};

Expand Down

0 comments on commit fd91056

Please sign in to comment.