Skip to content

Commit

Permalink
Add handleContentSizeChange execution on first render
Browse files Browse the repository at this point in the history
  • Loading branch information
Skalakid committed Apr 11, 2024
1 parent 5880ff4 commit 7b49ff4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/MarkdownTextInput.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,8 @@ const MarkdownTextInput = React.forwardRef<TextInput, MarkdownTextInputProps>(
}
const currentValue = value ?? '';
history.current.add(currentValue, currentValue.length);

handleContentSizeChange();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

Expand Down

0 comments on commit 7b49ff4

Please sign in to comment.