mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
fix(checkbox): disabled toggle should not fire events or animate
This commit is contained in:
@ -175,7 +175,7 @@ export class Toggle implements AfterContentInit, ControlValueAccessor, OnDestroy
|
|||||||
|
|
||||||
|
|
||||||
private _setChecked(isChecked: boolean) {
|
private _setChecked(isChecked: boolean) {
|
||||||
if (isChecked !== this._checked) {
|
if (!this._disabled && isChecked !== this._checked) {
|
||||||
this._checked = isChecked;
|
this._checked = isChecked;
|
||||||
if (this._init) {
|
if (this._init) {
|
||||||
this.ionChange.emit(this);
|
this.ionChange.emit(this);
|
||||||
|
Reference in New Issue
Block a user