mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: admin menu rendered at incorrect spot
make sure we don't unsubscribe all events when menu is destroyed
This commit is contained in:
parent
3215273091
commit
0b2fa2b0af
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ export default Ember.Component.extend({
|
|||
@on('willDestroyElement')
|
||||
_cleanup() {
|
||||
$('html').off(`mouseup.popup-menu-${this.get('elementId')}`);
|
||||
this.appEvents.off("popup-menu:open");
|
||||
this.appEvents.off("popup-menu:open", this, "_changeLocation");
|
||||
},
|
||||
|
||||
_changeLocation(location) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue