FIX: Using cmd-f to search in a topic wasn't restricting to that topic
This commit is contained in:
parent
44f39ddc86
commit
7b7f94d7df
|
@ -230,7 +230,11 @@ export default createWidget('header', {
|
||||||
if (state.searchVisible) {
|
if (state.searchVisible) {
|
||||||
const contextType = this.searchContextType();
|
const contextType = this.searchContextType();
|
||||||
|
|
||||||
if (state.searchContextType !== contextType) {
|
if (!contextType) {
|
||||||
|
state.contextEnabled = undefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (state.searchContextType && state.searchContextType !== contextType) {
|
||||||
state.contextEnabled = undefined;
|
state.contextEnabled = undefined;
|
||||||
state.searchContextType = contextType;
|
state.searchContextType = contextType;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue