fix(checkbox): disabled toggle should not fire events or animate

This commit is contained in:
Emanuel
2016-08-10 16:14:01 -04:00
committed by Adam Bradley
parent 174efc196d
commit 3324e32617

View File

@ -175,7 +175,7 @@ export class Toggle implements AfterContentInit, ControlValueAccessor, OnDestroy
private _setChecked(isChecked: boolean) {
if (isChecked !== this._checked) {
if (!this._disabled && isChecked !== this._checked) {
this._checked = isChecked;
if (this._init) {
this.ionChange.emit(this);