Skip to content

ISBAT Have blocks with an attribute named Animation w/o breaking #2623

@margolisj

Description

@margolisj

Describe the bug:

I should be able to filter blocks that I do not want being accessed via this LayoutPreview / sanitizeBlocks function Code Here. Coblocks is currently breaking our Block Previews, as we also use an attribute named animation.

To reproduce:

  1. Have a non-Coblocks block that has an attribute named animation, where that attribute is expected to exist for render.
  2. Have both Plugins active. Load a block preview for
  3. See Error

Expected behavior:

We would expect you to be targeting only Coblocks blocks.

Screenshots:

Isolating the problem:

  • This bug happens with no other plugins activated
  • This bug happens with a default WordPress theme active
  • This bug happens without the Gutenberg plugin active
  • I can reproduce this bug consistently using the steps above

WordPress version:

6.7

Gutenberg version:

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Priority] LowThis issue/pull request is not immediate[Type] BugSomething that is not working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions