From bacb056ee063e2e20194810f06efd1de05720dfa Mon Sep 17 00:00:00 2001 From: Vladimir Potekhin Date: Fri, 16 Aug 2024 18:17:23 +0300 Subject: [PATCH] fix(addon-mobile): `PullToRefresh` do not trigger pulled if dialog inside --- .../components/pull-to-refresh/pull-to-refresh.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/addon-mobile/components/pull-to-refresh/pull-to-refresh.service.ts b/projects/addon-mobile/components/pull-to-refresh/pull-to-refresh.service.ts index 2c8c3c759103..af03095c70d4 100644 --- a/projects/addon-mobile/components/pull-to-refresh/pull-to-refresh.service.ts +++ b/projects/addon-mobile/components/pull-to-refresh/pull-to-refresh.service.ts @@ -33,6 +33,7 @@ export class TuiPullToRefreshService extends Observable { startWith(null), switchMap(() => tuiTypedFromEvent(this.element, 'touchstart', {passive: true}).pipe( + filter(() => !this.el.nativeElement.querySelector('tui-dialog')), filter(() => !this.scrollTop), map(({touches}) => touches[0].clientY), switchMap(start =>