mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix menu component unregister
This commit is contained in:
@@ -54,7 +54,8 @@ export class Menu extends Ion {
|
||||
|
||||
if (!this.id) {
|
||||
// Auto register
|
||||
this.app.register('menu', this);
|
||||
this.id = 'menu';
|
||||
this.app.register(this.id, this);
|
||||
}
|
||||
|
||||
this._initGesture();
|
||||
@@ -230,7 +231,7 @@ export class Menu extends Ion {
|
||||
}
|
||||
|
||||
onDestroy() {
|
||||
this.app.unregister(this);
|
||||
this.app.unregister(this.id);
|
||||
this._type && this._type.onDestroy();
|
||||
this.contentElement = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user