Skip to content

The BlockAttribute type does not allow for multi-type attributes #78516

@joshualip-plaudit

Description

@joshualip-plaudit

Description

Block attributes can have multiple types (i.e. string or boolean), which is encoded in block.json as an array. The current type does not allow for that

Step-by-step reproduction instructions

  1. Try to pass an array of strings as the type of a block attribute
  2. Observe that that does not 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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Labels

[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions