@expensify/react-native-live-markdown 0.1.80 → 0.1.82

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -363,6 +363,12 @@ const MarkdownTextInput = React.forwardRef<TextInput, MarkdownTextInputProps>(
363
363
  default:
364
364
  text = parseText(divRef.current, changedText, processedMarkdownStyle).text;
365
365
  }
366
+
367
+ const selectionAfterTextChange = CursorUtils.getCurrentCursorPosition(divRef.current);
368
+ if (selectionAfterTextChange) {
369
+ contentSelection.current = selectionAfterTextChange;
370
+ }
371
+
366
372
  if (pasteRef?.current) {
367
373
  pasteRef.current = false;
368
374
  updateSelection(e);