A platform for community discussion. Free, open, simple.
FIX: Using cmd-f to search in a topic wasn't restricting to that topic
Robin Ward7b7f94d7df25
diff --git a/app/assets/javascripts/discourse/widgets/header.js.es6 b/app/assets/javascripts/discourse/widgets/header.js.es6index 0cfc0419148..12cd200c324 100644--- a/app/assets/javascripts/discourse/widgets/header.js.es6+++ b/app/assets/javascripts/discourse/widgets/header.js.es6@@ -230,7 +230,11 @@ export default createWidget('header', {if (state.searchVisible) {const contextType = this.searchContextType();- if (state.searchContextType !== contextType) {+ if (!contextType) {+ state.contextEnabled = undefined;+ }++ if (state.searchContextType && state.searchContextType !== contextType) {state.contextEnabled = undefined;state.searchContextType = contextType;}