We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9e75139 + dac2e94 commit ef57bceCopy full SHA for ef57bce
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
0 commit comments