Skip to content

[5.x]: Color field: Custom colors not working when present on newly created matrix blocks #16554

@ZapaNOR

Description

@ZapaNOR

What happened?

Description

If a matrix block has a color field on it, the custom color option will not work if the matrix block is fresh and unsaved.
Saving the entry makes the custom color work again.

Steps to reproduce

  1. Add a color field to a matrix block
  2. Set the matrix field to "inline editable"
  3. New block, try to pick "custom color" no selector for color comes up.
  4. Save entry, try again, works.

Image

Craft CMS version

5.6.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions