Skip to content

Commit

Permalink
Fix selectionStart and selectionEnd variables after review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Skalakid committed Mar 7, 2024
1 parent b2e61c5 commit f6889a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MarkdownTextInput.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ const MarkdownTextInput = React.forwardRef<TextInput, MarkdownTextInputProps>(

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) {
Expand Down

0 comments on commit f6889a8

Please sign in to comment.