From 7c5586e87a719b1a28d5c6cd3c334947811e3c08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Mon, 16 Oct 2023 13:16:05 +0200 Subject: [PATCH] MOBILE-4362 collapsible: Do not collapse headers if inside a tab outlet --- src/core/directives/collapsible-header.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/directives/collapsible-header.ts b/src/core/directives/collapsible-header.ts index 0aaff8cef..1d920f4ee 100644 --- a/src/core/directives/collapsible-header.ts +++ b/src/core/directives/collapsible-header.ts @@ -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(); }