fix(accessor): ngModel conflits with nested inputs (#18976)

fixes #18248
This commit is contained in:
Manu MA
2019-08-06 13:34:54 +02:00
committed by GitHub
parent 7cd68b59fc
commit 6bbdb80871
8 changed files with 37 additions and 25 deletions

View File

@ -25,8 +25,8 @@ export class BooleanValueAccessor extends ValueAccessor {
setIonicClasses(this.el);
}
@HostListener('ionChange', ['$event.target.checked'])
_handleIonChange(value: any) {
this.handleChangeEvent(value);
@HostListener('ionChange', ['$event.target'])
_handleIonChange(el: any) {
this.handleChangeEvent(el, el.checked);
}
}