From 94622b451a19f0f5152280f146354ab663d06eb8 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Wed, 8 Aug 2018 17:47:31 +0800 Subject: [PATCH] FIX: Search does not retrigger when context has changed. https://meta.discourse.org/t/using-the-search-this-topic-check-box-blocks-search-on-other-pages/56832/6?u=tgxworld --- app/assets/javascripts/discourse/widgets/search-menu.js.es6 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/discourse/widgets/search-menu.js.es6 b/app/assets/javascripts/discourse/widgets/search-menu.js.es6 index 79fd332291f..30964e614e9 100644 --- a/app/assets/javascripts/discourse/widgets/search-menu.js.es6 +++ b/app/assets/javascripts/discourse/widgets/search-menu.js.es6 @@ -196,6 +196,8 @@ export default createWidget("search-menu", { this.triggerSearch(); } + searchData.contextEnabled = attrs.contextEnabled; + return this.attach("menu-panel", { maxWidth: 500, contents: () => this.panelContents()