There was an error while loading. Please reload this page.
1 parent 9e75139 commit d7c6d43Copy full SHA for d7c6d43
src/components/ColorPicker/ColorPicker.vue
@@ -137,7 +137,7 @@ if (typeof model.value === 'string') {
137
let colorRgb: RGBAColor;
138
139
// Convert from hex to rgba object
140
- if (/#[0-9abcdef]{3,6}/.test(model.value)) {
+ if (/#[0-9abcdef]{3,6}/.test(model.value?.toLowerCase())) {
141
colorRgb = { ...hexToRgb(model.value), alpha: 1 };
142
} else {
143
// Convert from rgba string to object
@@ -181,6 +181,8 @@ onBeforeUnmount(() => {
181
const handleHueChange = (hue: number) => {
182
colorHsb.hue = hue;
183
184
+ console.log(hue, outputColor.value);
185
+
186
model.value = outputColor.value;
187
emits('change', outputColor.value);
188
};
0 commit comments