From 06ca3a094ee88198c63a48db557bd247117c9316 Mon Sep 17 00:00:00 2001 From: vultix Date: Tue, 24 Jul 2018 08:51:13 -0600 Subject: [PATCH] fix(forms): TextValueAccessor raises onTouched on blur. (#1230) --- .../forms/value-accessors/text-value-accessor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nativescript-angular/forms/value-accessors/text-value-accessor.ts b/nativescript-angular/forms/value-accessors/text-value-accessor.ts index de41fae85..2fc201491 100644 --- a/nativescript-angular/forms/value-accessors/text-value-accessor.ts +++ b/nativescript-angular/forms/value-accessors/text-value-accessor.ts @@ -38,7 +38,7 @@ export type TextView = {text: string} & View; "search-bar[ngModel], search-bar[formControlName],search-bar[formControl]", providers: [TEXT_VALUE_ACCESSOR], host: { - "(touch)": "onTouched()", + "(blur)": "onTouched()", "(textChange)": "onChange($event.value)", }, })