mirror of
https://github.com/Alamantus/Lexiconga.git
synced 2025-04-30 15:23:11 +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' />
|
<i className='fa fa-search' />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div className='control'>
|
||||||
|
<a className='button' onClick={() => this.setState({ searchTerm: '' }, () => this.search())}>
|
||||||
|
Clear
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{ this.showFilterOptions() }
|
{ this.showFilterOptions() }
|
||||||
|
|
Loading…
Add table
Reference in a new issue