fix(forms): avoid producing an error with hostBindingTypeCheck
Using the default value accessor no longer produces errors when used in combination with fullTemplateTypeCheck and hostBindingTypeCheck. Fixes: #19905
This commit is contained in:
parent
2e7e935b02
commit
d213a20dfc
@ -49,10 +49,10 @@ export const COMPOSITION_BUFFER_MODE = new InjectionToken<boolean>('CompositionE
|
|||||||
// https://github.com/angular/angular/issues/3011 is implemented
|
// https://github.com/angular/angular/issues/3011 is implemented
|
||||||
// selector: '[ngModel],[formControl],[formControlName]',
|
// selector: '[ngModel],[formControl],[formControlName]',
|
||||||
host: {
|
host: {
|
||||||
'(input)': '_handleInput($event.target.value)',
|
'(input)': '$any(this)._handleInput($event.target.value)',
|
||||||
'(blur)': 'onTouched()',
|
'(blur)': 'onTouched()',
|
||||||
'(compositionstart)': '_compositionStart()',
|
'(compositionstart)': '$any(this)._compositionStart()',
|
||||||
'(compositionend)': '_compositionEnd($event.target.value)'
|
'(compositionend)': '$any(this)._compositionEnd($event.target.value)'
|
||||||
},
|
},
|
||||||
providers: [DEFAULT_VALUE_ACCESSOR]
|
providers: [DEFAULT_VALUE_ACCESSOR]
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user