Skip to content

Commit

Permalink
fix(checkbox): disabled toggle should not fire events or animate
Browse files Browse the repository at this point in the history
  • Loading branch information
epetre authored and adamdbradley committed Aug 10, 2016
1 parent 174efc1 commit 3324e32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/toggle/toggle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3324e32

Please sign in to comment.