From 37b01584a93da426c74f2ba626246f107f01a05b Mon Sep 17 00:00:00 2001 From: Svyatoslav Zaytsev Date: Fri, 26 Jul 2024 11:32:53 +0500 Subject: [PATCH] fix(core): fix dropdown-context directive on touchscreen laptops --- .../core/directives/dropdown/dropdown-context.directive.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/core/directives/dropdown/dropdown-context.directive.ts b/projects/core/directives/dropdown/dropdown-context.directive.ts index 9a5f35af8694c..186253a8b564b 100644 --- a/projects/core/directives/dropdown/dropdown-context.directive.ts +++ b/projects/core/directives/dropdown/dropdown-context.directive.ts @@ -2,7 +2,7 @@ import {Directive, HostBinding, HostListener, Inject} from '@angular/core'; import { EMPTY_CLIENT_RECT, TUI_IS_IOS, - TUI_TOUCH_SUPPORTED, + TUI_IS_TOUCH, TuiActiveZoneDirective, tuiPointToClientRect, } from '@taiga-ui/cdk'; @@ -43,7 +43,7 @@ export class TuiDropdownContextDirective extends TuiDriver implements TuiRectAcc readonly activeZone: TuiActiveZoneDirective, @Inject(TUI_IS_IOS) readonly isIOS: boolean, - @Inject(TUI_TOUCH_SUPPORTED) + @Inject(TUI_IS_TOUCH) readonly isTouch: boolean, ) { super(subscriber => this.stream$.subscribe(subscriber));