mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 19:57:32 +08:00
FIX: allows color-input to set hex and color names through input (#9339)
This commit is contained in:
parent
e7e931b70b
commit
9c43963ff3
|
@ -24,8 +24,7 @@ export default Component.extend({
|
||||||
|
|
||||||
@action
|
@action
|
||||||
onHexInput(color) {
|
onHexInput(color) {
|
||||||
this.attrs.onChangeColor &&
|
this.attrs.onChangeColor && this.attrs.onChangeColor(color || "");
|
||||||
this.attrs.onChangeColor((color || "").replace(/^#/, ""));
|
|
||||||
},
|
},
|
||||||
|
|
||||||
@observes("hexValue", "brightnessValue", "valid")
|
@observes("hexValue", "brightnessValue", "valid")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user