From 42f02eeea21a1d2fc26607dfe35491213e45e8cf Mon Sep 17 00:00:00 2001 From: darker Date: Sat, 13 Aug 2022 23:27:46 +0200 Subject: [PATCH] fix: onKeyUp (#55) --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index d55d978..4e06a47 100644 --- a/src/App.js +++ b/src/App.js @@ -120,7 +120,7 @@ class App extends Component { ref={this.refText} value={this.state.search} className="search-zone" - onKeyup = { + onKeyUp = { (event) => { if (event.keyCode === 13) window.document.location.href = "?q=" + this.state.search;