Rename isProvisionalBlock action property to selectPrevious in removeBlock and removeBlocks #5696
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.
selectPrevious better expresses the intent of the flag. Its value is only false when we are removing the provisional block.
Props to @aduth for making this sugestion in: #5568 (comment)
How Has This Been Tested?
Verify that when removing a block the previous block always gets selected.
Verify that removing provisionalBlock works as expected e.g: in Columns block add provisional paragraphs then select other block and see provisional paragraphs get removed and the block we want to select is selected.