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.81k stars 468 forks source link

Properly load js and set zindex with DAL in a BSModal #1319

Open hrlien opened 1 year ago

hrlien commented 1 year ago

I'm struggling to get DAL js loaded and setting the zindex for the select2-container when using BSModal. Trying to set z-index value with css for the modal only, but it doesn't seem to work. (eg: #modal select2-container: 100000; ) Using a global css for select2-container works, but it then also applies to the page behind the modal, making the select2 fields in this page to show in the modal... To get the js to work I need to include the modal form in the page behind. Loading the js in the modal doesn't work. Tried with both {{form.media.js}} and loading the js-files directly using the Githubissues.

  • Githubissues is a development platform for aggregating issues.