Skip to content

Commit

Permalink
Merge pull request #179 from MatsAnd/hide-clear-on-empty-search
Browse files Browse the repository at this point in the history
Skjul "tøm søkefeltet"-knappen når søkefeltet er tomt
  • Loading branch information
runely authored Oct 29, 2022
2 parents b250ce3 + 00aa30d commit 43f0b0e
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

1 comment on commit 43f0b0e

@vercel
Copy link

@vercel vercel bot commented on 43f0b0e Oct 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

dust-web – ./

dust-web-vtfk.vercel.app
dust.vtfk.no
dust-web.vercel.app
dust-web-git-main-vtfk.vercel.app

Please sign in to comment.