Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix pasting content into inner blocks #16717
Resolves an issue where content pasted into inner blocks is not saved correctly.
The issue was caused by a small caching error introduced in #16407.
When pasting content into an empty paragraph, a block replacement is triggered. When this action was being carried out in an inner block, cached parent blocks were not being invalidated.
This is the code that attempts to invalidate parents of a replaced block:
The issue is that
This PR resolves the issue.
How has this been tested?
Updated the relevant unit test to ensure the parent block is invalidated.
Types of changes
Bug fix (non-breaking change which fixes an issue)
tellthemachines left a comment
Tested with columns and nested columns, by pasting content in, saving and previewing, and it's working fine.