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

DOM: Abort selection range set on unset range target #8691

Merged
merged 1 commit into from
Aug 8, 2018

Conversation

aduth
Copy link
Member

@aduth aduth commented Aug 7, 2018

Fixes #8676

This pull request seeks to resolve an issue where merging two empty paragraph blocks which were created while at the end of an inline boundary would result in an uncaught error.

Implementation notes:

We were relying on a bogus node from TinyMCE to be present. Regardless of whether we should be concerned about an inconsistency in the presence of this node, the placeCaretAtHorizontalEdge function should be resilient in handling an empty contentEditable.

Testing instructions:

Repeat testing instructions from #8676, ensuring that no error is encountered.

Ensure end-to-end tests pass:

npm run test-e2e

@aduth aduth added [Type] Bug An existing feature does not function as intended [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... labels Aug 7, 2018
@aduth aduth added this to the 3.5 milestone Aug 7, 2018
@aduth aduth requested a review from a team August 7, 2018 21:04
Copy link
Contributor

@youknowriad youknowriad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@youknowriad youknowriad merged commit bec6a3c into master Aug 8, 2018
@youknowriad youknowriad deleted the fix/8676-place-caret-range-target branch August 8, 2018 08:43
@ellatrix
Copy link
Member

ellatrix commented Aug 8, 2018

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Writing Flow: Error merging paragraph block following linked paragraph block
3 participants