From 7b49ff4407377aa8224d15d07bdbb88d745e3c7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Ska=C5=82ka?= Date: Thu, 11 Apr 2024 17:45:26 +0200 Subject: [PATCH] Add handleContentSizeChange execution on first render --- src/MarkdownTextInput.web.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/MarkdownTextInput.web.tsx b/src/MarkdownTextInput.web.tsx index d725f2f6..29d11d3a 100644 --- a/src/MarkdownTextInput.web.tsx +++ b/src/MarkdownTextInput.web.tsx @@ -587,6 +587,8 @@ const MarkdownTextInput = React.forwardRef( } const currentValue = value ?? ''; history.current.add(currentValue, currentValue.length); + + handleContentSizeChange(); // eslint-disable-next-line react-hooks/exhaustive-deps }, []);