Skip to content

Commit

Permalink
Auto focus only on mount (#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj authored Jun 3, 2024
1 parent 6541a6e commit 1f927a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/MarkdownTextInput.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,8 @@ const MarkdownTextInput = React.forwardRef<TextInput, MarkdownTextInputProps>(
if (autoFocus) {
divRef.current.focus();
}
}, [autoFocus]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

useEffect(() => {
// update content size when the input styles change
Expand Down

0 comments on commit 1f927a0

Please sign in to comment.