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 = () => {
|
searchChange = () => {
|
||||||
this.props.setSearchTerm(this.state.searchValue.trim());
|
this.props.setSearchTerm(this.state.searchValue.trim());
|
||||||
};
|
};
|
||||||
|
@ -52,7 +46,6 @@ class Searchbar extends React.Component {
|
||||||
value={searchValue}
|
value={searchValue}
|
||||||
placeholder={this.props.searchLabel}
|
placeholder={this.props.searchLabel}
|
||||||
onChange={this.handleSearchChange}
|
onChange={this.handleSearchChange}
|
||||||
// onKeyUp={this.handleSearchEnter}
|
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
className="searchbar__clear-button"
|
className="searchbar__clear-button"
|
||||||
|
|
Loading…
Reference in a new issue