Skip to content

Commit

Permalink
Merge pull request #5 from eaudeweb/25398_allow_clear_reset_results
Browse files Browse the repository at this point in the history
refs #25398 allow clear resets results
  • Loading branch information
dana-cfc4 authored Jul 1, 2024
2 parents ba1fc34 + c32a7a7 commit c624250
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ const SearchInput: React.FC<SearchInputProps> = ({
const handleInputChange = useCallback(
(e: React.ChangeEvent<HTMLInputElement>) => {
setInputValue(e.target.value)
if (e.type === 'click') {
onChange(id, '')
}
},
[id, onChange],
)
Expand Down

0 comments on commit c624250

Please sign in to comment.