mirror of
https://github.com/Alamantus/Lexiconga.git
synced 2025-04-29 23:03:00 +02:00
Add clear button to search box
This commit is contained in:
parent
28a3f28fc3
commit
d93f86f75f
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue