Skip to content

Bugfix: toggle expand for nested menus

I noticed there were several problems in the way the event listener function was applied for toggling nested-menu expansion. These problems caused menus nested deeper than 2 levels not to expand/collapse after clicking on the triangle.

Instead of going through li elements nested in elements with class nested-menu, we now iterate through all elements with class sidebar-page. Also, instead of acting upon target, the callback function now acts upon currentTarget. These measures should avoid assigning the event listener function multiple times to the same element.

Issue summary:

  • Clicking on triangles should expand respective section
  • Did not work for menus nested deeper than 2 levels

Signed-off-by: Sietze van Buuren Sietze.vanBuuren@de.bosch.com

Merge request reports