From d213a20dfcd52bb75cc951fd430e3fa751bf3767 Mon Sep 17 00:00:00 2001 From: Chuck Jazdzewski Date: Tue, 12 Dec 2017 17:01:21 -0800 Subject: [PATCH] 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 --- packages/forms/src/directives/default_value_accessor.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/forms/src/directives/default_value_accessor.ts b/packages/forms/src/directives/default_value_accessor.ts index 6208323338..3120f372c6 100644 --- a/packages/forms/src/directives/default_value_accessor.ts +++ b/packages/forms/src/directives/default_value_accessor.ts @@ -49,10 +49,10 @@ export const COMPOSITION_BUFFER_MODE = new InjectionToken('CompositionE // https://github.com/angular/angular/issues/3011 is implemented // selector: '[ngModel],[formControl],[formControlName]', host: { - '(input)': '_handleInput($event.target.value)', + '(input)': '$any(this)._handleInput($event.target.value)', '(blur)': 'onTouched()', - '(compositionstart)': '_compositionStart()', - '(compositionend)': '_compositionEnd($event.target.value)' + '(compositionstart)': '$any(this)._compositionStart()', + '(compositionend)': '$any(this)._compositionEnd($event.target.value)' }, providers: [DEFAULT_VALUE_ACCESSOR] })