Skip to content

reactive_color_picker with enableAlpha: false cannot be changed after cleared #143

@thedeukalion

Description

@thedeukalion

I have a form that allows the 'Color' to be null.
And there's a clear button of that color.
I do not wish to use 'alpha' or any kind of opacity at all for this.
While having a Color control with enableAlpha: false and then pressing the 'Clear' button the alpha layer is set to 0 and I can no longer change it. The only way to reset it now is outside the control or reloading the whole form.

Reproduce by having this

ReactiveColorPicker(
  formControlName: formControlName,
  enableAlpha: false,
)

Then pressing the clear button. No alpha layer available afterwards. I can't select a color.
The form has both been tested by using Color? and Color. Color is not required and should not need to be.

Screenshot 2024-04-07 130135

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions