mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 06:24:48 +08:00
FIX: If you ctrl+f twice, it should show the browser version
This commit is contained in:
@ -229,11 +229,6 @@ export default createWidget('header', {
|
||||
togglePageSearch() {
|
||||
const { state } = this;
|
||||
|
||||
if (state.searchVisible) {
|
||||
this.toggleSearchMenu();
|
||||
return false;
|
||||
}
|
||||
|
||||
state.contextEnabled = false;
|
||||
|
||||
const currentPath = this.container.lookup('controller:application').get('currentPath');
|
||||
@ -248,6 +243,11 @@ export default createWidget('header', {
|
||||
this.container.lookup('controller:topic').get('model.postStream.stream.length'));
|
||||
}
|
||||
|
||||
if (state.searchVisible) {
|
||||
this.toggleSearchMenu();
|
||||
return showSearch;
|
||||
}
|
||||
|
||||
if (showSearch) {
|
||||
state.contextEnabled = true;
|
||||
this.toggleSearchMenu();
|
||||
|
Reference in New Issue
Block a user