From 2b5046af19950aa17af6a8f4ec3956f5672b206a Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Mon, 22 Mar 2021 09:58:59 +0100 Subject: [PATCH] FIX: a never created listener was removed (#12469) --- app/assets/javascripts/discourse/app/components/site-header.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/app/components/site-header.js b/app/assets/javascripts/discourse/app/components/site-header.js index 9be47f75680..487fa1c620a 100644 --- a/app/assets/javascripts/discourse/app/components/site-header.js +++ b/app/assets/javascripts/discourse/app/components/site-header.js @@ -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");