Skip to content

Colorpicker value never passes validation with showAlpha = true #1316

@lex0r

Description

@lex0r

Winter CMS Build

dev-develop

PHP Version

8.1

Database engine

MySQL/MariaDB

Plugins installed

No response

Issue description

If a colorpicker is configured to allow for transparency option (which comes as an extra two hex digits when formats = hex or "all") the value of this field with opacity at the end can never be saved as it doesn't pass the built-in validation.

Steps to replicate

  1. Create a form field of type colorpicker, configure it with showAlpha: true.
  2. Try to submit the form

Workaround

No known workaround

Metadata

Metadata

Assignees

Labels

needs prIssues that are awaiting a PR to be submitted

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions