Thanks Ben. My code is more or less the same. The main problem seems that Wappler is not generating the Bootstrap5Collapse.js at all. It’s missing! So it’s a Wappler bug.
Can you (or maybe someone else) please upload your dmxBootstrap5Collapse.js here so I can use it (or the zipped folder if there are some more files in the parent folder)? Thanks in advance
Hi Andre,
You say the static version works? Is it working without the js file then and is the js include missing? Also how do you add the accordion to the page?
To fix this all you need to do is to add the collpase component in app structure and the js file will be added in the head. Then you can remove the collapse from the page.
I’ve just not added the collaps component first. I’ve just added an accordion. Maybe when a user adds the accordion, Wappler should check if the component has already been added?
This post and @ben video has really helped me out big time as I was stuck on dynamic accordion
Strangely when the accordion cards are dropped on the content page the script dmxBootstrap5Collapse.js is not added to the layout page, however out of the box the collapsing works fine!!!
Once you make it a dynamic accordion as per Ben video Dynamic Bootstrap 5 Accordion then the collapsing doesn’t work anymore.
Then you have to add the dynamic collapse component in order to get the script added to the layout page as mentioned in this post by @Teodor in order for the dynamic accordion to work.
For novices this is very hard to work out without this post and Ben video
Should dropping the accordion on a page not add the dmxBootstrap5Collapse.js script?