mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 02:52:44 +08:00
FIX: Don't auto select ALL topics, only keyboard chosen ones
This commit is contained in:
parent
7b7f94d7df
commit
d962d6072e
|
@ -230,11 +230,7 @@ export default createWidget('header', {
|
|||
if (state.searchVisible) {
|
||||
const contextType = this.searchContextType();
|
||||
|
||||
if (!contextType) {
|
||||
state.contextEnabled = undefined;
|
||||
}
|
||||
|
||||
if (state.searchContextType && state.searchContextType !== contextType) {
|
||||
if (state.searchContextType !== contextType) {
|
||||
state.contextEnabled = undefined;
|
||||
state.searchContextType = contextType;
|
||||
}
|
||||
|
@ -407,6 +403,10 @@ export default createWidget('header', {
|
|||
this.toggleHamburger();
|
||||
break;
|
||||
case 'page-search':
|
||||
let contextType = this.searchContextType();
|
||||
if (contextType === 'topic') {
|
||||
this.state.searchContextType = contextType;
|
||||
}
|
||||
if (!this.togglePageSearch()) {
|
||||
msg.event.preventDefault();
|
||||
msg.event.stopPropagation();
|
||||
|
|
Loading…
Reference in New Issue
Block a user