Block Settings Menu in Toolbar trying to render for a non-existing (just removed) block #15458
Labels
[Feature] Block API
API that allows to express the block paradigm.
Needs Technical Feedback
Needs testing from a developer perspective.
[Type] Bug
An existing feature does not function as intended
Describe the bug
When removing a block via Toolbar (using the menu with three dots -> selecting Remove Block) then the Block Settings Menu will still try to render again, this will result in either:
a) The preceding block's Toolbar being rendered instead with the Block Settings Menu already open (it shouldn't render open by default), or
b) If there is no block selected (e.g. if the paragraph block is unregistered), then this results in an error:
To reproduce
Steps to reproduce the behavior:
Steps to reproduce the console error:
core/paragraph
block, e.g.Expected behavior
Screenshots
Tested on the
master
branch as of today.Also tested with the released 5.6.1 from official plugin repo -- with that version, a console error occurs but the editor doesn't crash.
The text was updated successfully, but these errors were encountered: