From ade4375fd74a40e600550edcc6c8d6fbf414b65d Mon Sep 17 00:00:00 2001 From: Ernst Widerberg Date: Mon, 18 Oct 2021 12:38:19 +0200 Subject: Fix input handler --- src/components/SearchForm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 }); } -- cgit v1.1