Skip to content

Block Bindings API/UI: Attributes Panel still shows when block is set to 'contentOnly' editing mode. #64731

@bacoords

Description

@bacoords

Description

When you set a block to using to contentOnly mode the Attributes panel is still visible, even though all of the other InspectorControls are gone.

CC @cbravobernal @SantosGuillamot

Step-by-step reproduction instructions

  1. Enable contentOnly editing mode on a block, typically using const { setBlockEditingMode } = useDispatch( blockEditorStore );,
  2. Check any block that's allowed to have bindings, the panel shows up.

Screenshots, screen recording, code snippet

Normal Paragraph Inspector controls:
Screenshot 2024-08-22 at 4 51 55 PM

Paragraph in contentOnly editing mode (it appears whether a binding was set or not):
Screenshot 2024-08-22 at 4 50 37 PM

Environment info

  • Gutenberg 19

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions