WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.3k stars 4.11k forks source link

Query block recieves Grid block attributes from pasted styles #63396

Open djcowan opened 1 month ago

djcowan commented 1 month ago

When pasting styles from a core\grid Block to a core\group containing a core\query block - the core\query block appears to have adopted grid layout supports and/or attributes.

Unable to reproduce using TTT4 v1.1 - no grid without gutenberg plugin. Assuming the issue is occuring due to the use of a page template using grid layout generated in dev, while gutenberg plugin was enabled. Custom theme then generated using: create-block-theme plugin Added to a site without gutenberg/grid support resulting in missmatched props. Will endeavour to reproduce replicatable results and repeatable steps with gutenberg enabled

Screenshot 2024-07-11 143349

djcowan commented 1 month ago

Fresh: wp-now -wp=6.5.5 --php=8.0 Gutenberg: Version 18.7.1 theme: TTT4 Steps to reproduce

  1. Add a core/group (to be style target) with inner block core\query
  2. Add a seperate core\group (to be style source) with inner block core\grid +grid items
  3. Copy styles from style source core/group and paste to style target

note: core/query now has grid layout properties test-Screenshot 2024-07-11 163141