Skip to content

Custom block styles cause a crash for nested block containers #13893

Closed
@kjellr

Description

Describe the bug

Assigning a custom block style to a nested block container (like the Media & Text or Columns block), causes a crash when you attempt to open the styles panel.

To Reproduce

  1. Register a custom block style, targeting core/media-text or core/columns
  2. In the editor, select the type of block you attempted to style.
  3. Attempt to open the block switcher, and observe the crash.
  4. In the sidebar, attempt to open the "Styles" panel and observe the crash.

Expected behavior

These should be able to accept block styles just like any other block.

Screenshots

media-text

screen shot 2019-02-15 at 8 52 28 am

Metadata

Assignees

No one assigned

    Labels

    [Feature] BlocksOverall functionality of blocks[Feature] Nested / Inner BlocksAnything related to the experience of nested/inner blocks inside a larger container, like Group or P[Status] DuplicateUsed to indicate that a current issue matches an existing one and can be closed[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions