mirror of
https://github.com/discourse/discourse.git
synced 2025-02-08 12:24:55 +00:00
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) {
|
if (e.key === "Enter" && !this.state.afterAutocomplete) {
|
||||||
return this.sendWidgetAction("fullSearch");
|
return this.sendWidgetAction("fullSearch");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user