Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hrlien opened this issue Feb 6, 2023 · 1 comment
Open

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

hrlien opened this issue Feb 6, 2023 · 1 comment

Comments

@hrlien
Copy link

hrlien commented Feb 6, 2023

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 <script> tag.

@jpic
Copy link
Member

jpic commented May 3, 2023

Might be worth a try converting the existing JS to WebComponents so we can delegate the lifecycle to the browser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants