jquery-gradient-picker icon indicating copy to clipboard operation
jquery-gradient-picker copied to clipboard

Uncaught DOMException

Open fouad1994 opened this issue 6 years ago • 0 comments

I am trying to make restore values from the element to the picker when i click on element I need picker to recognize the colors and degrees but recently I still have this error on some colors my controlPoints: white 0%,ed00ed 56%,a60000 93% but I've got this error

jquery.gradientPicker.js:99 Uncaught DOMException: Failed to execute 'addColorStop' on 'CanvasGradient': The value provided ('ed00ed') could not be parsed as a color. at GradientSelection.updatePreview (http://127.0.0.1:8000/js/plugins/color-picker/plugin/jquery.gradientPicker.js:99:11) at new GradientSelection (http://127.0.0.1:8000/js/plugins/color-picker/plugin/jquery.gradientPicker.js:71:8) at HTMLDivElement. (http://127.0.0.1:8000/js/plugins/color-picker/plugin/jquery.gradientPicker.js:347:19) at Function.each (http://127.0.0.1:8000/js/plugins/jquery/dist/jquery.min.js:2:2861) at n.fn.init.each (http://127.0.0.1:8000/js/plugins/jquery/dist/jquery.min.js:2:845) at n.fn.init.init (http://127.0.0.1:8000/js/plugins/color-picker/plugin/jquery.gradientPicker.js:345:9) at n.fn.init.$.fn.gradientPicker (http://127.0.0.1:8000/js/plugins/color-picker/plugin/jquery.gradientPicker.js:368:17) at runBackgroundOptions (http://127.0.0.1:8000/js/aio/edit-design.js:1516:26) at HTMLDocument. (http://127.0.0.1:8000/js/aio/scripts.js:640:5) at i (http://127.0.0.1:8000/js/plugins/jquery/dist/jquery.min.js:2:27151) at Object.fireWith [as resolveWith] (http://127.0.0.1:8000/js/plugins/jquery/dist/jquery.min.js:2:27914) at Function.ready (http://127.0.0.1:8000/js/plugins/jquery/dist/jquery.min.js:2:29707) at HTMLDocument.J (http://127.0.0.1:8000/js/plugins/jquery/dist/jquery.min.js:2:29892)

fouad1994 avatar Sep 23 '18 13:09 fouad1994