-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Post Title: deleting the block crashes the parent group block #31115
Comments
I've tried to reproduce this, but I can not. When I press My setup: macOS 11.1 CleanShot.2021-05-03.at.10.19.09.mp4 |
I can confirm it. Steps to reproduce:
The group block crashes an the console fires some exceptions e.g. "Uncaught Error: An error occurred while running 'mapSelect': Cannot read property 'title' of undefined" |
I'll give a look again. I've likely not reproduced correctly |
UPDATE: After some extensive investigation, it looks like this problem occurs in any container blocks. Error is happening in gutenberg/packages/block-editor/src/components/block-list/use-block-props/index.js Line 96 in 6d977df
The block is still being rendered after it's deleted. The I couldn't figure out why but using the "Remove block" option from the dropdown doesn't cause any crashes. So it's tied to the backspace keyboard shortcut in some way 🤔 Investigating further.... |
I think after merge of #32088 this could be closed. |
Steps to reproduce:
delete
.Before:
After:
The text was updated successfully, but these errors were encountered: