diff --git a/projects/core/directives/dropdown/dropdown-options.directive.ts b/projects/core/directives/dropdown/dropdown-options.directive.ts index 13350d1b2c30..960131c2abaa 100644 --- a/projects/core/directives/dropdown/dropdown-options.directive.ts +++ b/projects/core/directives/dropdown/dropdown-options.directive.ts @@ -1,4 +1,4 @@ -import type {FactoryProvider} from '@angular/core'; +import {type FactoryProvider, Self} from '@angular/core'; import {Directive, inject, Input, Optional, SkipSelf} from '@angular/core'; import {tuiCreateToken, tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous'; import type {TuiVerticalDirection} from '@taiga-ui/core/types'; @@ -38,7 +38,7 @@ export const tuiDropdownOptionsProvider: ( ) => FactoryProvider = (override: Partial) => ({ provide: TUI_DROPDOWN_OPTIONS, deps: [ - [new Optional(), TuiDropdownOptionsDirective], + [new Optional(), new Self(), TuiDropdownOptionsDirective], [new Optional(), new SkipSelf(), TUI_DROPDOWN_OPTIONS], ], useFactory: tuiOverrideOptions(override, TUI_DROPDOWN_DEFAULT_OPTIONS), diff --git a/projects/core/directives/hint/hint-options.directive.ts b/projects/core/directives/hint/hint-options.directive.ts index e25c921bf11b..d2072a30ef18 100644 --- a/projects/core/directives/hint/hint-options.directive.ts +++ b/projects/core/directives/hint/hint-options.directive.ts @@ -1,4 +1,4 @@ -import type {FactoryProvider, OnChanges} from '@angular/core'; +import {type FactoryProvider, type OnChanges, Self} from '@angular/core'; import {Directive, inject, Input, Optional, SkipSelf} from '@angular/core'; import {tuiCreateToken, tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous'; import {tuiOverrideOptions} from '@taiga-ui/core/utils'; @@ -61,7 +61,7 @@ export const tuiHintOptionsProvider: ( ) => FactoryProvider = (override: Partial) => ({ provide: TUI_HINT_OPTIONS, deps: [ - [new Optional(), TuiHintOptionsDirective], + [new Optional(), new Self(), TuiHintOptionsDirective], [new Optional(), new SkipSelf(), TUI_HINT_OPTIONS], ], useFactory: tuiOverrideOptions(override, TUI_HINT_DEFAULT_OPTIONS),