chore(): call onTouched

This commit is contained in:
Adam Bradley
2016-02-13 21:27:15 -06:00
parent 3444a3cfa9
commit 10222e97f8
3 changed files with 3 additions and 0 deletions

View File

@ -133,6 +133,7 @@ export class Checkbox {
console.debug('checkbox, onChange', isChecked);
fn(isChecked);
this._setChecked(isChecked);
this.onTouched();
};
}

View File

@ -334,6 +334,7 @@ export class Select {
fn(val);
this._values = (Array.isArray(val) ? val : isBlank(val) ? [] : [val]);
this._updOpts();
this.onTouched();
};
}

View File

@ -203,6 +203,7 @@ export class Toggle implements ControlValueAccessor {
console.debug('toggle, onChange', isChecked);
fn(isChecked);
this._setChecked(isChecked);
this.onTouched();
};
}