Skip to content

Commit 3d97f47

Browse files
committed
fix(sidebar-nav): incorrect sidebarNavGroup height with nested submenu
- thanks @32x0lf - closes #153
1 parent bea0fce commit 3d97f47

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,10 @@ export class SidebarNavGroupComponent implements OnInit, OnDestroy {
184184
}
185185

186186
onAnimationDone($event: AnimationEvent) {
187+
if ($event.toState === 'open') {
188+
const host = this.sidebarNav.nativeElement;
189+
this.renderer.setStyle(host, 'height', 'auto');
190+
}
187191
if ($event.toState === 'closed') {
188192
setTimeout(() => {
189193
this.display = null;

0 commit comments

Comments
 (0)