removed handleSearchEnter definition which was redundant

This commit is contained in:
Sundeep Chand 2020-07-28 12:56:41 +05:30
parent 1091a4e4af
commit cb6d050723
1 changed files with 0 additions and 7 deletions

View File

@ -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"