mledour / angular-admin-lte

AdminLte for Angular 2
https://mika-el.github.io/angular-admin-lte/
MIT License
112 stars 77 forks source link

Error with Sidebar when it's Mini mode #55

Closed iyilm4z closed 4 years ago

iyilm4z commented 4 years ago

When Sidebar menu is on mini mode, it shouldn't behave like in the pic below for submenus. @CarlesLopezMagem do you have any ide bro?

bug

iyilm4z commented 4 years ago

I updated admin lte to 2.4.18 which is the latest version for v2. Dropdown arrrow for the first level sub menu has gone which is expected, but it keeps 2nd level menu always open even i collapse it but it works as expected when menu is not on mini mode.

SoftLabNS commented 4 years ago

i changed CollapseAnimationDirective in node_modules/angular-admin-lte.js, because menu items not collapsed, only set height to 0px.

collapse method 2218 line:

+ this.renderer2.removeClass(this.elementRef.nativeElement, 'un-collapse');

+ this.renderer2.setStyle(this.elementRef.nativeElement, 'display', 'none');

iyilm4z commented 4 years ago

@SoftLabNS Hi, could you please show on directive's own code? I mean on git repo.