Automattic / block-experiments

A monorepo of Block Experiments
125 stars 17 forks source link

Layout Grid behaving weirdly with latest Gutenberg #327

Open tellthemachines opened 1 year ago

tellthemachines commented 1 year ago

The Layout Grid resize handles are acting up when latest version of Gutenberg is enabled:

https://github.com/Automattic/block-experiments/assets/8096000/331e75e9-a97e-4b5b-842a-09704b6db449

This is most likely due to a change on the Gutenberg side, but it's hard to debug as I'm not really familiar with this block.

Also, trying to add Layout Grid to a post in my local dev environment with Gutenberg trunk results in the whole editor crashing with Uncaught TypeError: Cannot add property width, object is not extensible, making it even harder to get to the bottom of the issue 😅

philbraun commented 1 year ago

I get the same strange behaviour, and Layout Grids not being saved, but only when trying to use it inside the Site Editor in a Block Theme. Maybe the Site Editors Preview size setting conflicts with LG's Responsive Breakpoints settings?