fix(toggle): emitStyles only fires with legacy control (#26507)

This commit is contained in:
Liam DeBeasi
2022-12-16 17:04:31 -05:00
committed by GitHub
parent 0cd6e918e8
commit ec9f8cd5f1

View File

@ -190,9 +190,11 @@ export class Toggle implements ComponentInterface {
}
private emitStyle() {
this.ionStyle.emit({
'interactive-disabled': this.disabled,
});
if (this.legacyFormController.hasLegacyControl()) {
this.ionStyle.emit({
'interactive-disabled': this.disabled,
});
}
}
private onStart() {