FIX: Pressing enter when searchContext is enabled should just trigger a search.

This commit is contained in:
Guo Xiang Tan 2017-01-17 11:01:33 +08:00
parent c76ee788a7
commit de6ca4f736
1 changed files with 2 additions and 0 deletions

View File

@ -191,6 +191,8 @@ export default createWidget('search-menu', {
if (url) {
this.sendWidgetEvent('linkClicked');
DiscourseURL.routeTo(url);
} else if (searchData.contextEnabled) {
this.triggerSearch();
}
}
});