Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typing in rgb values doesn't update the color #81

Open
aleksander351 opened this issue May 7, 2024 · 1 comment
Open

Typing in rgb values doesn't update the color #81

aleksander351 opened this issue May 7, 2024 · 1 comment

Comments

@aleksander351
Copy link

aleksander351 commented May 7, 2024

image

when setting the rgb values or the hsl values, nothing changes.
Only when setting the hex string all 6 characters, does the color change.

The relevant code:

<chrome-picker [control]="colorControl">
  <div class="buttons">
    <button type="button" (click)="applyClick()">Apply</button>
  </div>
</chrome-picker>
this.colorControl.hidePresets().hideAlphaChannel();
this.colorControl.setValueFrom(color); // #ffffff

applyClick(): void {
  this.colorPicker.hide();
  this.colorChange.emit(colorControl.value.toHexString());
}

Nothing fancy here, just doesn't work like the demo example.
Looks like the (inputChange) of the rgba-input-component and hsla-input-component doesn't work.

@pIvan
Copy link
Owner

pIvan commented May 8, 2024

rgb

image

image

image

Just tested with one of the components, can you give me more info and/or code examples? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants