Backspace to clear "Create Reusable Block" modal's name field deletes the selected blocks #37539
Labels
[Block] Block
The "Reusable Block" Block
[Feature] Synced Patterns
Related to synced patterns (formerly reusable blocks)
[Status] Duplicate
Used to indicate that a current issue matches an existing one and can be closed
[Type] Bug
An existing feature does not function as intended
Description
Originally reported in WordPress Core's Trac ticket 54652.
Since WordPress 5.9 Beta (works correctly in 5.8.1), backspacing to clear the reusable block's name in the "Create Reusable Block" modal closes the modal and deletes the selected blocks. This is different from WordPress 5.8.1 which clears the name field, but keeps the modal open and does not delete the selected blocks.
The reporter also notes that control Z does not restore the content; however, in my testing, control Z did restore the blocks for me.
Step-by-step reproduction instructions
Notice the modal closes and the selected blocks are deleted.
Screenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: