Skip to content

Inner blocks template not rendering in Editor upon insertion #71724

@kmanijak

Description

@kmanijak

Description

When inserting blocks that rely on InnerBlocks templates, the inner content is not rendered upon insertion. But saving and refreshing triggers rendering and content is rendered properly.

Reproducible only in templates. Starter to occur after merging #67125.

Step-by-step reproduction instructions

  1. Go to Editor > Templates and choose some templates
  2. Insert Query Loop block
  3. Choose Start blank and some design

Expected:
All content is rendered (including Pagination and No Results)

Actual:
Pagination and No Results is missing

  1. Save and refresh Editor
  2. Content is rendered

Can be also reproduced on Terms Query block but it's experimental (in admin Gutenberg > Experiments > tick Enables experimental blocks on a rolling basis as they are developed.)

Screenshots, screen recording, code snippet

Example on three blocks using InnerBlocks:

  • Product Gallery (from WooCommerce)
  • Query Loop
  • Terms Query
First insert After refresh
Image Image

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

Labels

[Feature] Nested / Inner BlocksAnything related to the experience of nested/inner blocks inside a larger container, like Group or P[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions