From 3324e326170c143c9d5cc4b25a6c8204498210ad Mon Sep 17 00:00:00 2001 From: Emanuel Date: Wed, 10 Aug 2016 16:14:01 -0400 Subject: [PATCH] fix(checkbox): disabled toggle should not fire events or animate --- src/components/toggle/toggle.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/toggle/toggle.ts b/src/components/toggle/toggle.ts index 30ceff83eda..a53ae828b0c 100644 --- a/src/components/toggle/toggle.ts +++ b/src/components/toggle/toggle.ts @@ -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);