-
Notifications
You must be signed in to change notification settings - Fork 17
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
Cannot expand collapsible element #80
Comments
This seems like a genuine bug, and I've had two people mention this to me now. If someone wants to help with this, I'd be happy to accept a pull request. The goal should be that this "just works". |
Adding <script type="text/javascript" src="/static/extensions/bulma-collapsible/dist/js/bulma-collapsible.min.js"></script>
<script>
bulmaCollapsible.attach();
</script> to my template made it work after I enabled the extension, the With that said I will try to write an extension script for this to make it work out of the box. |
oh, interesting findings. The |
..might also be related to script load order? hmm. |
i dont know enough javascript to fix the defer issue, but we still need the single line script that adds all the |
There is this A simple enough solution right now is to set your code to execute after the In vanilla JS, the fix looks like : <script>
window.addEventListener('DOMContentLoaded', function() {
// use the extensions here
});
</script> |
I tried adding the following snippet to a django template: https://bulma-collapsible.netlify.app/usage/#collapsible-card
However the element appears collapsed, and pressing the button does not expand it.
Made sure that bulma-collapsible is enabled.
The text was updated successfully, but these errors were encountered: