[RNMobile] Fix replacing empty paragraph in inner block#20653
Merged
[RNMobile] Fix replacing empty paragraph in inner block#20653
Conversation
2 tasks
|
Size Change: 0 B Total Size: 865 kB ℹ️ View Unchanged
|
Contributor
|
According to already existing sanity-tests:
And also one extra which will be added soon according to this fix:
|
jbinda
approved these changes
Mar 9, 2020
Contributor
jbinda
left a comment
There was a problem hiding this comment.
According to sanity check it seems to work as expected.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes wordpress-mobile/gutenberg-mobile#1974
Gutenberg-mobile PR: wordpress-mobile/gutenberg-mobile#1984
In this PR i fixed the issue when trying to replace a paragraph that is nested in the inner block that is the only block on the root level. I added a check if the
rootClientIdis passed in props because that means the selected and replaceable paragraph is a nested one.How has this been tested?
Test case 1
Test case 2
Screenshots
Types of changes
Bug fix
Checklist: