removed handleSearchEnter definition which was redundant
This commit is contained in:
parent
1091a4e4af
commit
cb6d050723
1 changed files with 0 additions and 7 deletions
|
@ -23,12 +23,6 @@ class Searchbar extends React.Component {
|
|||
});
|
||||
}
|
||||
|
||||
// handleSearchEnter = (e) => {
|
||||
// if (e.key === 'Enter') {
|
||||
// this.searchChange();
|
||||
// }
|
||||
// }
|
||||
|
||||
searchChange = () => {
|
||||
this.props.setSearchTerm(this.state.searchValue.trim());
|
||||
};
|
||||
|
@ -52,7 +46,6 @@ class Searchbar extends React.Component {
|
|||
value={searchValue}
|
||||
placeholder={this.props.searchLabel}
|
||||
onChange={this.handleSearchChange}
|
||||
// onKeyUp={this.handleSearchEnter}
|
||||
/>
|
||||
<button
|
||||
className="searchbar__clear-button"
|
||||
|
|
Loading…
Reference in a new issue