Hello,
It seems that data-kt-menu-accordion-expand-all="true" isn’t working — even in the example in the official documentation it doesn't or at least it doesn't work as i think it is intended. The documentation states: "[...] keep all submenus visible at all times despite toggling other."
Steps to reproduce
Actual result
Submenu 1 collapses as Submenu 2 gets re-expanded.
Expected result
Submenu 1 stays expanded when data-kt-menu-accordion-expand-all is set to true.
Or am i missing something?
Workaround:
Setting the option via Javascript does make it work as expected:
const menuEl = document.getElementById('accordion_menu');
const options = {
accordionExpandAll: true,
}
new KTMenu(menuEl, options);
Hello,
It seems that data-kt-menu-accordion-expand-all="true" isn’t working — even in the example in the official documentation it doesn't or at least it doesn't work as i think it is intended. The documentation states: "[...] keep all submenus visible at all times despite toggling other."
Steps to reproduce
Go to the official Accordion Menu documentation page. https://keenthemes.com/metronic/tailwind/docs/components/menu#accordion-expand-all
Scroll to the #accordion-expand-all section.
Collapse the Submenu 2.
Re-expand Submenu 2.
Actual result
Submenu 1 collapses as Submenu 2 gets re-expanded.
Expected result
Submenu 1 stays expanded when data-kt-menu-accordion-expand-all is set to true.
Or am i missing something?
Workaround:
Setting the option via Javascript does make it work as expected: