FIX: a never created listener was removed (#12469)

This commit is contained in:
Joffrey JAFFEUX 2021-03-22 09:58:59 +01:00 committed by GitHub
parent c3e76da90a
commit 2b5046af19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -280,7 +280,7 @@ const SiteHeaderComponent = MountWidget.extend(
willDestroyElement() {
this._super(...arguments);
$("body").off("keydown.header");
$(window).off("resize.discourse-menu-panel");
this.appEvents.off("header:show-topic", this, "setTopic");