mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
fix(toggle): emitStyles only fires with legacy control (#26507)
This commit is contained in:
@ -190,9 +190,11 @@ export class Toggle implements ComponentInterface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private emitStyle() {
|
private emitStyle() {
|
||||||
this.ionStyle.emit({
|
if (this.legacyFormController.hasLegacyControl()) {
|
||||||
'interactive-disabled': this.disabled,
|
this.ionStyle.emit({
|
||||||
});
|
'interactive-disabled': this.disabled,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private onStart() {
|
private onStart() {
|
||||||
|
Reference in New Issue
Block a user