Move selection mark/cursor to end of markdown once done processing

This commit is contained in:
Lynette Lopez
2022-09-28 20:55:26 -05:00
parent 68ab7d3968
commit 1e0614ff56
@@ -552,8 +552,8 @@ export const Text = forwardRef<ExtendedTextUtils, TextProps>((props, ref) => {
}
// markdown interception
if (supportMarkdown && handleMarkdown(e)) {
const start_selection = utils.current.getStartSelection();
utils.current.setSelection(start_selection);
const endOfMarkdown = utils.current.getEndSelection();
utils.current.setSelection(endOfMarkdown);
e.preventDefault();
return true;
}