Skip to content

Commit

Permalink
Fix search input
Browse files Browse the repository at this point in the history
  • Loading branch information
kreafox committed Apr 17, 2023
1 parent 5caecd2 commit 133b5f3
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions searchlib/components/SearchInput/SearchInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,11 @@ function SearchInput({
<div className="terms-box-left">
<div className="input-controls">
{(searchTerm || '').trim() && (
<>
<Button
basic
className="clear-button"
<div className="ui button basic clear-button">
<Icon
tabIndex={0}
name="close"
role="button"
onClick={() => {
// inputProps.onChange({ target: { value: '' } });
setSearchTerm('', { shouldClearFilters: false });
Expand All @@ -163,10 +164,8 @@ function SearchInput({
}
}
}}
>
<Icon name="close" />
</Button>
</>
/>
</div>
)}
</div>

Expand Down

0 comments on commit 133b5f3

Please sign in to comment.