Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RichText: Non-collapsed selection abruptly interrupted when spanning multiple nodes #13895

Closed
aduth opened this issue Feb 15, 2019 · 0 comments · Fixed by #13896
Closed

RichText: Non-collapsed selection abruptly interrupted when spanning multiple nodes #13895

aduth opened this issue Feb 15, 2019 · 0 comments · Fixed by #13896
Assignees
Labels
[Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Package] Rich text /packages/rich-text

Comments

@aduth
Copy link
Member

aduth commented Feb 15, 2019

When holding down the mouse cursor and selecting text in a paragraph which spans multiple child nodes, the selection is abruptly terminated.

This can happen for Shift+Enter created newlines, where the paragraph is a series of #text, br, #text nodes:

select

And can happen as well for text which is applied some formatting, e.g. bold:

select2

I'm not entirely sure it's related, but in the course of this I also discovered some similar selection issues with uncollapsing a selection (via Shift+Arrows), where the selection starts to expand from the right (instead of continue contracting) when reaching the end of a formatted node.

select3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Package] Rich text /packages/rich-text
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants