yourlabs / django-autocomplete-light

A fresh approach to autocomplete implementations, specially for Django. Status: v4 alpha, v3 stable, v2 & v1 deprecated.
https://django-autocomplete-light.readthedocs.io
MIT License
1.8k stars 467 forks source link

Version 3.8 is incompatible with django_comments #1204

Closed aliceni closed 3 years ago

aliceni commented 3 years ago

Version 3.8 is not compatible with {% render_comment_form %} of django_comments. If I use django-autocomplete-light before {% render_comment_form %} in my code, the following error will come: _Uncaught TypeError: Cannot read property 'define' of undefined at dalLoadLanguage (en.js:2) at autocomplete_light.js:106 at autocompletelight.js:217

In en.js, "_n.define("select2/i18n/en__"

But it works well if I use it after {% render_comment_form %} It also works well if I use Version 3.5.1.

aliceni commented 3 years ago

Same issue with https://github.com/yourlabs/django-autocomplete-light/issues/1195