Skip to content

Pattern Overrides: Unable to set some attributes like Image block Aspect Ratio when editing the original pattern #62814

@talldan

Description

@talldan

Description

When editing the original pattern and the block has overrides active, some attributes like 'aspect ratio' don't work.

This is a side effect of #62471, which disabled regular attribute updates for any block with a __default pattern override binding. The intention of that PR was to only affect pattern instances to stop situations where edits could be applied to 'locked' parts of blocks. However, it also affects the block when editing the original pattern.

I think it may be worth reverting that PR, even though reverting will cause two new issues:

Step-by-step reproduction instructions

  1. Create a pattern
  2. Add an image block
  3. Enable bindings for the image block
  4. Upload an image to the block
  5. Try adjusting Aspect Ratio, observe it doesn't work.

Screenshots, screen recording, code snippet

No response

Environment info

No response

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

Metadata

Metadata

Labels

[Feature] Synced PatternsRelated to synced patterns (formerly reusable blocks)[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions