mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +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() {
|
||||
this.ionStyle.emit({
|
||||
'interactive-disabled': this.disabled,
|
||||
});
|
||||
if (this.legacyFormController.hasLegacyControl()) {
|
||||
this.ionStyle.emit({
|
||||
'interactive-disabled': this.disabled,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private onStart() {
|
||||
|
Reference in New Issue
Block a user