Closed noum closed 7 years ago
Hi @nomentsoa-andrianjatovo ,
well, this seems to be an error in main.js
. You describe that you call the picker on DOM-ready but I think that there is something going wrong:
Maybe wrap your code in main.js
in a $(function() { ... });
wrapper and try again.
Let me know if it works. Cheers
@PitPik
Already contained it in a (function($) { ... })(jQuery);
. But since putting js files before </body>
is good for me too, then it's no longer an issue, also I just wanted to be sure it doesn't come from the plugin. So I guess we can close this.
Thanks BTW, sorry for the trouble.
All in the title. Although, I only tested the jQuery version, not the simple JS version
This doesn't work and return the following error:
Uncaught TypeError: Cannot read property 'style' of null jQueryColorPicker.min.js:3
:main.js
is where I docp_picker = new ColorPicker({...})
on DOM ready.On the other hand, this works great:
Where could be the problem please ?