diff --git a/vendor-overwrites/colorpicker/colorconverter.js b/vendor-overwrites/colorpicker/colorconverter.js index 6129d59d..24ec2398 100644 --- a/vendor-overwrites/colorpicker/colorconverter.js +++ b/vendor-overwrites/colorpicker/colorconverter.js @@ -17,7 +17,7 @@ const colorConverter = (() => { }; function format(color = '', type = color.type, hexUppercase) { - if (!color || !type) return ''; + if (!color || !type) return typeof color === 'string' ? color : ''; const a = formatAlpha(color.a); const hasA = Boolean(a); if (type === 'rgb' && color.type === 'hsl') {