Still able to select block when block is set to disabled with useBlockEditingMode #57227
Labels
[Feature] Block API
API that allows to express the block paradigm.
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
Bug: When a block is set to disabled using setBlockEditingMode, it stops a user from being able to select that block either directly by clicking on it or by selecting it in the block list view, however we discovered that a user is still able to select the disabled block by clicking in the space directly above the block before the block inserter. useBlockEditingMode does not appear to take this method of selecting blocks in to account (if that is a valid method of selecting blocks).
Related to #52094
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
WordPress 6.4.2.
The Gutenberg plugin is not installed.
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: