From 8bfd377c14045a7aa15a81e8975887d7bed8322c Mon Sep 17 00:00:00 2001 From: splincode Date: Wed, 29 Jan 2025 11:05:29 +0300 Subject: [PATCH] fix(core): `tuiDropdownContext` menu remains open after long tap --- projects/core/directives/dropdown/dropdown-context.directive.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/core/directives/dropdown/dropdown-context.directive.ts b/projects/core/directives/dropdown/dropdown-context.directive.ts index 303a4b4a5065..c2057aa11643 100644 --- a/projects/core/directives/dropdown/dropdown-context.directive.ts +++ b/projects/core/directives/dropdown/dropdown-context.directive.ts @@ -66,6 +66,7 @@ export class TuiDropdownContextDirective extends TuiDriver implements TuiRectAcc @HostListener('document:click.silent', ['$event.target']) @HostListener('document:contextmenu.capture.silent', ['$event.target']) @HostListener('document:keydown.esc', ['$event.currentTarget']) + @HostListener('document:pointerdown.silent', ['$event.target']) closeDropdown(): void { this.stream$.next(false); this.currentRect = EMPTY_CLIENT_RECT;