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:
Joffrey JAFFEUX 2021-08-17 21:30:57 +02:00 committed by GitHub
parent 40f7edd276
commit 823f22ae5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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");
} }