Skip to content

(BUG) data-kt-menu-accordion-expand doesn't work as intended #137

Description

@RustyPrime

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions