From 866a5380121b3e0d026229c82f16fcb628b8b168 Mon Sep 17 00:00:00 2001 From: Nikita Barsukov Date: Mon, 2 Dec 2024 14:18:36 +0300 Subject: [PATCH 1/2] fix(kit): `Input` with `DataList` never shows dropdown after its 1st closing --- .../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..e58fde90cd95 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 - >, + readonly hosted: TuiInjectionTokenType, @Self() @Inject(TuiDropdownDirective) dropdown: TuiDropdownDirective, @Optional() @Inject(TuiDropdownOpenDirective) From 51d0683ccaf9480f52f538e844ef5cce64e3e5df Mon Sep 17 00:00:00 2001 From: Nikita Barsukov Date: Mon, 2 Dec 2024 15:03:57 +0300 Subject: [PATCH 2/2] chore: make remove di-entity from public API --- .../hosted-dropdown/dropdown-open-monitor.directive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e58fde90cd95..7b5bf8aaaa2f 100644 --- a/projects/core/components/hosted-dropdown/dropdown-open-monitor.directive.ts +++ b/projects/core/components/hosted-dropdown/dropdown-open-monitor.directive.ts @@ -19,7 +19,7 @@ export class TuiDropdownOpenMonitorDirective { constructor( @Self() @Inject(TuiDestroyService) destroy$: Observable, @Inject(TUI_HOSTED_DROPDOWN_COMPONENT) - readonly hosted: TuiInjectionTokenType, + hosted: TuiInjectionTokenType, @Self() @Inject(TuiDropdownDirective) dropdown: TuiDropdownDirective, @Optional() @Inject(TuiDropdownOpenDirective)