From 6ed74fa1f51a1eae50381c40aea9c2f78f256d00 Mon Sep 17 00:00:00 2001 From: Svyatoslav Zaytsev Date: Tue, 1 Oct 2024 12:25:32 +0500 Subject: [PATCH] fix(core): fix open DropdownContext after single touch on iOS --- projects/core/directives/dropdown/dropdown-context.directive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/core/directives/dropdown/dropdown-context.directive.ts b/projects/core/directives/dropdown/dropdown-context.directive.ts index 186253a8b564..303a4b4a5065 100644 --- a/projects/core/directives/dropdown/dropdown-context.directive.ts +++ b/projects/core/directives/dropdown/dropdown-context.directive.ts @@ -95,8 +95,8 @@ export class TuiDropdownContextDirective extends TuiDriver implements TuiRectAcc return; } - this.currentRect = tuiPointToClientRect(x, y); this.longTapTimeout = setTimeout(() => { + this.currentRect = tuiPointToClientRect(x, y); this.stream$.next(true); }, TAP_DELAY); }