Add clear button to search box
This commit is contained in:
parent
28a3f28fc3
commit
d93f86f75f
|
@ -118,6 +118,11 @@ export class SearchBox extends Component {
|
|||
<i className='fa fa-search' />
|
||||
</span>
|
||||
</div>
|
||||
<div className='control'>
|
||||
<a className='button' onClick={() => this.setState({ searchTerm: '' }, () => this.search())}>
|
||||
Clear
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{ this.showFilterOptions() }
|
||||
|
|
Loading…
Reference in New Issue