Hi everybody!
Yesterday I drafted a small plugin (subplugin to mod_unilabel, https://github.com/sh-csg/moodle-unilabeltype_accordion) to provide an easy way to use Bootstrap accordion. It works well up to moodle 3.11, in moodle 4.0 (with theme boost) I noticed the following behaviour:
Everytime I click to expand / collapse a segment produced by the plugin, the current section is collapsed. This also happens when you use Bootstrap collapse in labels (e.g. the code from https://getbootstrap.com/docs/4.6/components/collapse/ ). The attribute data-target is set in both cases.
Does anybody have an idea how to avoid this? Bootstrap collapse itself doesn't seem to have problems with nested collapse elements.
Thanks a lot for your help!
Stefan