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

Rename isProvisionalBlock action property to selectPrevious in removeBlock and removeBlocks #5696

Conversation

jorgefilipecosta
Copy link
Member

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.

@jorgefilipecosta jorgefilipecosta added the [Type] Enhancement A suggestion for improvement. label Mar 19, 2018
@jorgefilipecosta jorgefilipecosta self-assigned this Mar 19, 2018
Copy link
Member

@aduth aduth left a comment

Choose a reason for hiding this comment

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

Thanks 👍

@jorgefilipecosta jorgefilipecosta merged commit ca723cc into master Mar 20, 2018
@jorgefilipecosta jorgefilipecosta deleted the update/rename-isProvisionalBlock-to-selectPrevious-removeBlock-action branch March 20, 2018 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants