lemonsaurus / django-simple-bulma

Django application to add the Bulma CSS framework and its extensions
MIT License
136 stars 16 forks source link

Use DOMContentLoaded in bulma-dropdown.js #64

Closed JonasUJ closed 3 years ago

JonasUJ commented 3 years ago

There was basically no guarantee that the dropdown element was loaded when the script ran. This was a leftover from the original script #27. Issue 27 also says you use that script on the PyDis site, so you should probably look into fixing it there too (unless the jQuery parts does some magic that defers the script execution/adding event listeners)