FIX: Using cmd-f to search in a topic wasn't restricting to that topic

This commit is contained in:
Robin Ward 2018-02-12 13:09:56 -05:00
parent 44f39ddc86
commit 7b7f94d7df
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}