That is to say that:
Each parent needs to know if it has children (if not to not display the arrow).
For each opened child to also assess the parents that they belong so that if the child is active the parents to be also "active".
Here is a summary of the code that needs to be produced with a full menu:
Hello,
Many thanks for your great effort.
Please consider potential compatibility with this (accordeon/vertical) bootstrap 5 menu: https://preview.keenthemes.com/metronic8/demo1/pages/profile/overview.html
That is to say that: Each parent needs to know if it has children (if not to not display the arrow). For each opened child to also assess the parents that they belong so that if the child is active the parents to be also "active".
Here is a summary of the code that needs to be produced with a full menu: