diff --git a/src/MarkdownTextInput.web.tsx b/src/MarkdownTextInput.web.tsx index 750755a6..64b5b5a4 100644 --- a/src/MarkdownTextInput.web.tsx +++ b/src/MarkdownTextInput.web.tsx @@ -322,7 +322,7 @@ const MarkdownTextInput = React.forwardRef( if (newSelection && (contentSelection.current.start !== newSelection.start || contentSelection.current.end !== newSelection.end)) { if (contentSelection.current.start >= 0 && contentSelection.current.end >= 0) { - updateRefSelectionVariables(contentSelection.current); + updateRefSelectionVariables(newSelection); contentSelection.current = newSelection; } if (e) {