From 20b1c6103d38d0f55159af34becc9e23e74e61bd Mon Sep 17 00:00:00 2001 From: Svyatoslav Zaytsev <143048525+MillerSvt@users.noreply.github.com> Date: Tue, 1 Oct 2024 20:56:15 +0500 Subject: [PATCH] fix(core): fix open DropdownContext after single touch on iOS (#9286) --- 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); }