Skip to content

Alpha-enabled color-picker component doesn't run onChangeComplete when changed from the form #26568

@abaicus

Description

@abaicus

Describe the bug
Alpha-enabled color-picker doesn't always run onChangeComplete function.

To reproduce
Steps to reproduce the behavior:

  1. Go to the storybook for the Alpha-enabled Color Picker or insert a ColorPicker component inside React with alpha enabled.
  2. Click on the Change color format button until you land on any other form than the Hexadecimal one.
  3. If you change any of the values inside the form, the onChangeComplete function never runs.

Expected behavior:
onChangeComplete should be run when changing anything inside the form.

Editor version:

  • WordPress version: 5.5.1
  • Gutenberg Plugin
  • Version 9.2.2 - Latest from the master branch on this repository

Desktop:

  • OS: Ubuntu
  • Browser Chrome
  • Version 86.0.4240.75

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Package] Components/packages/components[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions