From eb71369e5ad3e298deac3aa27359c8ba891f7885 Mon Sep 17 00:00:00 2001 From: Nikita Barsukov Date: Tue, 3 Dec 2024 10:26:17 +0300 Subject: [PATCH] fix(core): `Input` with `DataList` never shows dropdown after its 1st closing (#9881) --- .../hosted-dropdown/dropdown-open-monitor.directive.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/projects/core/components/hosted-dropdown/dropdown-open-monitor.directive.ts b/projects/core/components/hosted-dropdown/dropdown-open-monitor.directive.ts index 20af054849d4..7b5bf8aaaa2f 100644 --- a/projects/core/components/hosted-dropdown/dropdown-open-monitor.directive.ts +++ b/projects/core/components/hosted-dropdown/dropdown-open-monitor.directive.ts @@ -14,15 +14,12 @@ export class TuiDropdownOpenMonitorDirective { @Input() set tuiDropdownOpenMonitor(open: boolean) { this.open?.update(open); - this.hosted.updateOpen(open); } constructor( @Self() @Inject(TuiDestroyService) destroy$: Observable, @Inject(TUI_HOSTED_DROPDOWN_COMPONENT) - private readonly hosted: TuiInjectionTokenType< - typeof TUI_HOSTED_DROPDOWN_COMPONENT - >, + hosted: TuiInjectionTokenType, @Self() @Inject(TuiDropdownDirective) dropdown: TuiDropdownDirective, @Optional() @Inject(TuiDropdownOpenDirective)