Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[Mobile] Fix caret position after inline paste - after selection refactor #15701
This PR is part of a series of PRs to fix the same issue. Most recently, a change in ownership of selection state has brought about an important refactor which regressed the previous PR before it was merged: #15552. The solution there is no longer viable, but the unit test in that PR may still serve as a helpful tool to prevent more regressions.
This PR is intended to fix a regression of part of this issue: wordpress-mobile/gutenberg-mobile#828 , specifically, when inline content is pasted.
How has this been tested?
This has been tested using the steps here:
Types of changes
This is a bug fix, but currently only resolves a part of the original issue. It serves as an incremental improvement. Also, this PR renames some local variables for clarity.