Replies: 1 comment 1 reply
-
Hello @journpy I've converted your issue into a discussion since the toggle buttons seem to work as expected, as shown in the documentation. Based on your description, it’s likely an issue with your project’s configuration or setup, or perhaps an incompatibility with Django Bootstrap. I noticed you’ve already opened zostera/django-bootstrap5#735 in their repository, which is a great step since I haven’t personally worked with Django Bootstrap. Here are a few suggestions to help debug the problem:
Maybe you could try to create a reproducible project for folks to help with StackBlitz for example. |
Beta Was this translation helpful? Give feedback.
-
Prerequisites
Describe the issue
I am using Bootstrap 5 for my Django app and have django-bootstrap5 v24.3 installed. The Bootstrap 5 docs says "Add
data-bs-toggle="button"
to toggle a button’s active state". However after adding it to my button, it does nothing. In fact, the button stops working and no toggle happens. I want to be able to toggle my button to active on a click event and for it to remain that way as long as I'm on that page. Do I need to add an extra JavaScript event to handle this? I'm thinking bootstrap should be able to handle this... I have popper.min.js and bootstrap.min.js scripts included. See MRE below:Reduced test cases
What operating system(s) are you seeing the problem on?
Windows, Linux
What browser(s) are you seeing the problem on?
Chrome, Microsoft Edge
What version of Bootstrap are you using?
v5.3.3
Beta Was this translation helpful? Give feedback.
All reactions