From 0d82115364824f3e52160263df738640126f9566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Fri, 11 Mar 2022 10:09:29 +0100 Subject: [PATCH] MOBILE-3814 collapsible: Check frozen state before end the transition --- src/core/directives/collapsible-header.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/directives/collapsible-header.ts b/src/core/directives/collapsible-header.ts index 01f7b0470..faf83ddbe 100644 --- a/src/core/directives/collapsible-header.ts +++ b/src/core/directives/collapsible-header.ts @@ -399,6 +399,10 @@ export class CoreCollapsibleHeaderDirective implements OnInit, OnChanges, OnDest return; } + if (page.classList.contains('is-frozen')) { + return; + } + const progress = parseFloat(page.style.getPropertyValue('--collapsible-header-progress')); const scrollTop = contentScroll.scrollTop; const collapse = progress > 0.5;