@@ -25,16 +25,14 @@ import type {TuiDataListHost} from '@taiga-ui/core/components/data-list';
2525import { tuiAsDataListHost } from '@taiga-ui/core/components/data-list' ;
2626import { TuiLabel } from '@taiga-ui/core/components/label' ;
2727import {
28- TUI_DROPDOWN_OPTIONS ,
2928 TuiDropdownDirective ,
29+ TuiDropdownFixed ,
3030 tuiDropdownOpen ,
31- tuiDropdownOptionsProvider ,
3231 TuiWithDropdownOpen ,
3332} from '@taiga-ui/core/directives/dropdown' ;
3433import { TuiWithIcons } from '@taiga-ui/core/directives/icons' ;
3534import { TUI_COMMON_ICONS } from '@taiga-ui/core/tokens' ;
3635import type { TuiSizeL , TuiSizeS } from '@taiga-ui/core/types' ;
37- import { tuiOverrideDefaultOptions } from '@taiga-ui/core/utils' ;
3836import type { PolymorpheusContent } from '@taiga-ui/polymorpheus' ;
3937import { PolymorpheusOutlet } from '@taiga-ui/polymorpheus' ;
4038
@@ -50,8 +48,9 @@ import {TuiWithTextfieldDropdown} from './textfield-dropdown.directive';
5048 styles : [ '@import "@taiga-ui/core/styles/components/textfield.less";' ] ,
5149 encapsulation : ViewEncapsulation . None ,
5250 changeDetection : ChangeDetectionStrategy . OnPush ,
53- providers : [ tuiAsDataListHost ( TuiTextfieldComponent ) , tuiDropdownOptionsProvider ( { } ) ] ,
51+ providers : [ tuiAsDataListHost ( TuiTextfieldComponent ) ] ,
5452 hostDirectives : [
53+ TuiDropdownFixed ,
5554 TuiDropdownDirective ,
5655 TuiWithDropdownOpen ,
5756 TuiWithTextfieldDropdown ,
@@ -82,9 +81,6 @@ export class TuiTextfieldComponent<T> implements TuiDataListHost<T> {
8281 protected readonly control ?: NgControl ;
8382
8483 protected readonly icons = inject ( TUI_COMMON_ICONS ) ;
85- protected readonly override = tuiOverrideDefaultOptions ( TUI_DROPDOWN_OPTIONS , {
86- limitWidth : 'fixed' ,
87- } ) ;
8884
8985 protected computedFiller = computed ( ( ) => {
9086 const value = this . directive ?. nativeValue ( ) || '' ;
0 commit comments