gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

InnerBlocks inserter shows all blocks and causes editor confusion

Open miikkamakela-into opened this issue 8 months ago • 6 comments

InnerBlocks inserter shows all blocks and causes editor confusion

Summary

A recentish change in Gutenberg appears to make the InnerBlocks inserter show the full block catalog instead of a constrained, contextual set of child blocks.

This creates substantial confusion for editors and undermines the intended nested block model. In practice, it becomes much easier to insert irrelevant blocks into structured areas where the parent block is clearly supposed to guide or limit composition.

Why this is a problem

The current behavior causes a few issues at once:

  • Editors are presented with many irrelevant block choices inside controlled layouts.
  • The UI no longer clearly communicates the intended structure of the parent block.
  • It increases training and support overhead because people assume all shown blocks are valid choices.
  • It becomes easier to break layout or content assumptions in patterns based on nested blocks.
  • The broad inserter behavior feels inconsistent with how InnerBlocks is typically used to create guided editing experiences.

Expected behavior

The inserter inside InnerBlocks should respect the intended child-block context.

Depending on the block setup, that usually means one or more of the following:

  • Respect allowedBlocks
  • Respect parent / ancestor / child relationships
  • Respect template intent and editing constraints
  • Prefer a contextual inserter over showing the full global block list

At minimum, the editor should make it clear why a broad set of blocks is being shown if that behavior is intentional.

Actual behavior

Inside an InnerBlocks area, the inserter shows all or far too many available blocks, including blocks that are not meaningful in the given parent context.

This creates mass confusion for content editors because the UI strongly implies those blocks are appropriate to insert there.

Steps to reproduce

  1. Create or edit a block that uses InnerBlocks.
  2. Configure the nested area with a constrained structure, such as allowedBlocks, a template, or a parent-guided layout.
  3. Open the inserter inside that InnerBlocks area.
  4. Observe that the inserter shows the full block list, or a much broader list than expected.

Impact

This is not just a cosmetic issue.

It affects:

  • editor usability
  • content governance
  • structural consistency
  • trust in block-level constraints
  • the usefulness of nested block authoring patterns

For teams building curated editorial experiences, this behavior makes InnerBlocks feel unreliable as a guided composition tool.

Environment

  • WordPress version: latest WordPress version
  • Gutenberg plugin version: latest available version
  • Block setup: mainly custom blocks and custom nested block setups
  • ACF: issue also appears in ACF block-based setups
  • Theme: custom theme
  • Browser: reproducible across all major browsers

Additional notes

If this behavior is intentional, it would help to document the rationale and the recommended way to preserve a constrained inserter experience.

If it is a regression, restoring contextual inserter behavior would significantly reduce editor confusion.

If this behavior is here to stay, developers need an official way to customize it without relying on hacks, workarounds, or CSS tricks.

miikkamakela-into avatar Mar 27 '26 11:03 miikkamakela-into

Thanks for reporting the problem, @miikkamakela-into!

Is the issue reproducible on WP 6.9, without the Gutenberg plugin active? I'm unable to reproduce it with a core block like Social Icon.

Do you mind sharing a screenshot or screencast as well?

Mamaduka avatar Mar 27 '26 13:03 Mamaduka

I was able to reproduce this consistently with a minimal custom block using InnerBlocks and allowedBlocks.

Setup

  • WordPress: 6.9.4
  • Gutenberg: 22.8.1
  • PHP: 8.4
  • Environment: DDEV

Block code

edit: function( props ) {
    return el( InnerBlocks, {
        allowedBlocks: [ 'core/paragraph', 'core/heading', 'core/list' ],
        template: [ [ 'core/paragraph', { content: 'Add content here...' } ] ]
    } );
}

Steps

  1. Insert the custom block into a post
  2. Focus inside the InnerBlocks area
  3. Open the inserter (+ button)

Result

The inserter shows the full global block catalog instead of being limited to:

  • core/paragraph
  • core/heading
  • core/list

Expected

Inserter should be scoped to allowedBlocks when inside InnerBlocks.


Additional observations

  • Disallowed blocks appear selectable in the UI
  • In some cases, insertion is still prevented, which suggests this is primarily an inserter filtering / UI issue rather than a full enforcement failure

Notes

  • This affects authoring UX significantly
  • Users see irrelevant blocks
  • It creates confusion about what is actually allowed
  • This used to behave correctly in earlier Gutenberg versions

miikkamakela-into avatar Mar 29 '26 09:03 miikkamakela-into

https://github.com/user-attachments/assets/c7ed5832-2618-4765-a50e-1ed96686eafb

miikkamakela-into avatar Mar 29 '26 10:03 miikkamakela-into

This is the expected behavior.

We were initially only showing allowed blocks of the current selected parent but there was feedback that this was also confusing for users, like if they click on a list block, they can't insert a paragraph anymore... The inserter block list was changing too often for a not so clear reason.

So the expected behavior right now is to show all blocks that can be inserted into the post and find the closest possible location where it can be inserted.

youknowriad avatar Apr 02 '26 09:04 youknowriad

Closing as working as intended.

youknowriad avatar Apr 03 '26 13:04 youknowriad

So there are no plans to allow bringing or having the better and more intuitive experience via custom hooks or anything?

At least some guidance for users or UI hints or improvements would be much needed if this is the longterm direction.

miikkamakela-into avatar Apr 03 '26 15:04 miikkamakela-into