mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-04 18:42:40 +08:00
Fix toggle-component (#4484)
This commit is contained in:
@@ -142,7 +142,7 @@ export class ToggleComponent extends ButtonComponent {
|
||||
}
|
||||
|
||||
public onDisable () {
|
||||
super.onEnable();
|
||||
super.onDisable();
|
||||
if (!CC_EDITOR) {
|
||||
this._unregisterToggleEvent();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user