From b49254aca2c9112ab99e4bc132776c2e779a8e90 Mon Sep 17 00:00:00 2001 From: tophf Date: Sat, 30 Jun 2018 10:39:24 +0300 Subject: [PATCH] colorConverter.format: passthru if string and no type given fixes #408 fixes f7f679bb --- vendor-overwrites/colorpicker/colorconverter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') {