From 9c43963ff3c4ba3c04764ddccf5dee0f4876ec61 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Thu, 2 Apr 2020 21:19:31 +0200 Subject: [PATCH] FIX: allows color-input to set hex and color names through input (#9339) --- app/assets/javascripts/admin/components/color-input.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/assets/javascripts/admin/components/color-input.js b/app/assets/javascripts/admin/components/color-input.js index 44fe738b43d..d1b6102c610 100644 --- a/app/assets/javascripts/admin/components/color-input.js +++ b/app/assets/javascripts/admin/components/color-input.js @@ -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")