Skip to content

Commit

Permalink
Show clear button when query is set, and empty query on clear
Browse files Browse the repository at this point in the history
  • Loading branch information
MatsAnd committed Oct 24, 2022
1 parent b250ce3 commit 00aa30d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ export function Layout (props) {
<SearchField
onChange={e => onChanged(e.target.value)}
onSearch={e => search(e.target.value)}
onClear={() => setQuery('')}
showClear={!!query}
debounceMs={1000}
onSelected={value => generateReport(value)}
autocomplete={false}
Expand Down

0 comments on commit 00aa30d

Please sign in to comment.