Skip to content

Commit

Permalink
Merge pull request #3821 from crazyserver/MOBILE-4362
Browse files Browse the repository at this point in the history
MOBILE-4362 collapsible: Do not collapse headers if inside a tab outlet
  • Loading branch information
NoelDeMartin authored Oct 16, 2023
2 parents 0811720 + 7c5586e commit 2019283
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/directives/collapsible-header.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ export class CoreCollapsibleHeaderDirective implements OnInit, OnChanges, OnDest
*/
ngOnInit(): void {
this.collapsible = !CoreUtils.isFalseOrZero(this.collapsible);

if (CoreDom.closest(this.collapsedHeader, 'core-tabs-outlet')) {
this.collapsible = false;
}

this.init();
}

Expand Down

0 comments on commit 2019283

Please sign in to comment.