mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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) {
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user