You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
@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.
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 ?
The text was updated successfully, but these errors were encountered: