mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 01:22:36 +08:00
FIX: Navigate to full page search when enter key used in topic
This commit is contained in:
parent
b9355f316a
commit
b9215ddaea
|
@ -97,10 +97,6 @@ export default createWidget("search-menu", {
|
|||
const ctx = contextEnabled ? this.searchContext() : null;
|
||||
const type = ctx ? Ember.get(ctx, "type") : null;
|
||||
|
||||
if (contextEnabled && type === "topic") {
|
||||
return;
|
||||
}
|
||||
|
||||
let url = "/search";
|
||||
const params = [];
|
||||
|
||||
|
@ -315,8 +311,6 @@ export default createWidget("search-menu", {
|
|||
if (url) {
|
||||
this.sendWidgetEvent("linkClicked");
|
||||
DiscourseURL.routeTo(url);
|
||||
} else if (searchData.contextEnabled) {
|
||||
this.triggerSearch();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user