mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +08:00
chore(): call onTouched
This commit is contained in:
@ -133,6 +133,7 @@ export class Checkbox {
|
|||||||
console.debug('checkbox, onChange', isChecked);
|
console.debug('checkbox, onChange', isChecked);
|
||||||
fn(isChecked);
|
fn(isChecked);
|
||||||
this._setChecked(isChecked);
|
this._setChecked(isChecked);
|
||||||
|
this.onTouched();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -334,6 +334,7 @@ export class Select {
|
|||||||
fn(val);
|
fn(val);
|
||||||
this._values = (Array.isArray(val) ? val : isBlank(val) ? [] : [val]);
|
this._values = (Array.isArray(val) ? val : isBlank(val) ? [] : [val]);
|
||||||
this._updOpts();
|
this._updOpts();
|
||||||
|
this.onTouched();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -203,6 +203,7 @@ export class Toggle implements ControlValueAccessor {
|
|||||||
console.debug('toggle, onChange', isChecked);
|
console.debug('toggle, onChange', isChecked);
|
||||||
fn(isChecked);
|
fn(isChecked);
|
||||||
this._setChecked(isChecked);
|
this._setChecked(isChecked);
|
||||||
|
this.onTouched();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user