Hello,
I am experiencing an issue with the accordion (course topics/lessons) in SP LMS.
The accordion works correctly in Firefox, but it does not expand in Chrome or Edge. After checking the browser console, I found the following error:
Uncaught TypeError: COLLAPSE: Option "parent" provided type "string" but expected type "(null|element)"
This error appears to be related to Bootstrap 5.3.8. It seems that SP LMS is initializing the Collapse component using the "parent" option as a string (e.g. "#accordion"), while Bootstrap 5.3 requires a DOM element instead.
Because of this, the accordion fails to initialize properly in Chromium-based browsers.
My environment:
- Joomla version: 5.4.5.1
- SP LMS version: Last Available
- Template: Edulif but not working in no one
- Bootstrap version: 5.3.8
From my understanding, this could be fixed by converting the "parent" option to a DOM element (e.g. document.querySelector(...)) or by using the data-bs-parent attribute properly without conflicting JS initialization.
Could you please confirm if this is a known issue and provide a fix or update?
Thank you in advance.