theatlantic/django-select2-forms

select2.jquery_ready.js makes $ jquery object inaccessible from other scripts

freb opened this issue · 1 comments

freb commented

I'm not super proficient at JavaScript, but from what I can tell, any page on which I load the select2.jquery_ready.js file, the '$' jquery object becomes undefined. I've validated this with code elsewhere on the page, removing all other scripts, and trying to access '$' via the console. Also, when reassigning the variable just after loading the script with 'var $ = jQuery', everything works as expected. I can't tell which part of the file might be causing this.

I can confirm this is an issue.