Skip to content

Commit

Permalink
Fix multiple text selection issues (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShridharGoel authored Jun 9, 2024
1 parent 945c704 commit e9424a9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/MarkdownTextInput.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -364,11 +364,6 @@ const MarkdownTextInput = React.forwardRef<TextInput, MarkdownTextInputProps>(
text = parseText(divRef.current, changedText, processedMarkdownStyle).text;
}

const selectionAfterTextChange = CursorUtils.getCurrentCursorPosition(divRef.current);
if (selectionAfterTextChange) {
contentSelection.current = selectionAfterTextChange;
}

if (pasteRef?.current) {
pasteRef.current = false;
updateSelection(e);
Expand Down

0 comments on commit e9424a9

Please sign in to comment.