diff options
| author | Ernst Widerberg <ernstwi@kth.se> | 2021-10-18 12:38:19 +0200 |
|---|---|---|
| committer | Ernst Widerberg <ernstwi@kth.se> | 2021-10-18 12:38:19 +0200 |
| commit | ade4375fd74a40e600550edcc6c8d6fbf414b65d (patch) | |
| tree | cd07735a6a74fa65d3a73ee83933a2efbcc63b94 /src | |
| parent | 1cdeb1c70a89ef1936d82e5f82f903c357f7b61a (diff) | |
Fix input handler
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/SearchForm.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/SearchForm.js b/src/components/SearchForm.js index e9b933d..5e8ab9f 100644 --- a/src/components/SearchForm.js +++ b/src/components/SearchForm.js @@ -20,9 +20,9 @@ class SearchForm extends React.Component { this.submitSearch = this.submitSearch.bind(this); } - handleInput(e) { + handleInput(event, result) { this.setState({ - [e.target.name]: e.target.value + [result.name]: result.value }); } |
