FIX: allows color-input to set hex and color names through input (#9339)

This commit is contained in:
Joffrey JAFFEUX 2020-04-02 21:19:31 +02:00 committed by GitHub
parent e7e931b70b
commit 9c43963ff3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -24,8 +24,7 @@ export default Component.extend({
@action
onHexInput(color) {
this.attrs.onChangeColor &&
this.attrs.onChangeColor((color || "").replace(/^#/, ""));
this.attrs.onChangeColor && this.attrs.onChangeColor(color || "");
},
@observes("hexValue", "brightnessValue", "valid")