Skip to content

Commit

Permalink
fix: revert the functionality to restore cursor in value update hook (#…
Browse files Browse the repository at this point in the history
…376)

Signed-off-by: dominictb <[email protected]>
  • Loading branch information
dominictb authored Jun 11, 2024
1 parent 1f8dc1d commit aa6b1b7
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 @@ -561,7 +561,7 @@ const MarkdownTextInput = React.forwardRef<TextInput, MarkdownTextInputProps>(

const text = processedValue !== undefined ? processedValue : '';

parseText(divRef.current, text, processedMarkdownStyle, contentSelection.current?.end);
parseText(divRef.current, text, processedMarkdownStyle, text.length);
updateTextColor(divRef.current, value);
},
[multiline, processedMarkdownStyle, processedValue],
Expand Down

0 comments on commit aa6b1b7

Please sign in to comment.