I'm using dropzone js and it's working great on pages that I require a dropzone. On any other page though it's giving me a "Invalid dropzone element"
error message and causing issues with my other javascript.
I have a custom JS file (which loads immediately after the dropzone.js file) and at the very top of the file I have the following line of code:
Dropzone.autoDiscover = false;
This should stop it from looking at any page where I'm not enabling it programatically. The error only goes away on pages where there is a valid dropzone.
I also set the following code on line 1470 on dropzone.js to try and enable it there too:
Dropzone.autoDiscover = false;
How can I get rid of this error?
if ($('#dropzoneDiv').length) { initDropZoneHere }
– Snicker