Custom block styles cause a crash for nested block containers #13893
Closed
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
- Register a custom block style, targeting
core/media-text
orcore/columns
- In the editor, select the type of block you attempted to style.
- Attempt to open the block switcher, and observe the crash.
- 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