FIX: uses keyUp as widgets dont handle bubbling (#14068)
discourse/app/widgets/search-menu.js is using keyDown to handle all kind of behaviors, using keyUp here prevents override.
This commit is contained in:
parent
40f7edd276
commit
823f22ae5e
|
@ -23,7 +23,7 @@ createWidget("search-term", {
|
|||
};
|
||||
},
|
||||
|
||||
keyDown(e) {
|
||||
keyUp(e) {
|
||||
if (e.key === "Enter" && !this.state.afterAutocomplete) {
|
||||
return this.sendWidgetAction("fullSearch");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue