fix(demo): add handling of ionBlur

This commit is contained in:
Ken Sodemann
2017-11-16 11:08:54 -06:00
parent 17862880a9
commit fbf7bc675f
3 changed files with 10 additions and 5 deletions

View File

@ -24,6 +24,11 @@ export class IonCheckboxValueAccessorDirective implements ControlValueAccessor {
this.onChange(value);
}
@HostListener('ionBlur')
_handleBlurEvent() {
this.onTouched();
}
registerOnChange(fn: (value: any) => void): void {
this.onChange = fn;
}