Skip to content

Commit

Permalink
clear filter value onblur
Browse files Browse the repository at this point in the history
Signed-off-by: gitdallas <[email protected]>
  • Loading branch information
gitdallas committed Nov 20, 2023
1 parent e16b7e7 commit 1a4f68a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/src/app/components/SimpleSelectTypeahead.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ export const SimpleSelectTypeahead: React.FC<ISimpleSelectBasicProps> = ({
onChange={onTextInputChange}
onKeyDown={onInputKeyDown}
onBlur={() => {
setFilterValue("");

Check warning on line 207 in client/src/app/components/SimpleSelectTypeahead.tsx

View check run for this annotation

Codecov / codecov/patch

client/src/app/components/SimpleSelectTypeahead.tsx#L207

Added line #L207 was not covered by tests
selectMultiple
? setInputValue("")
: setInputValue(selected.toString());

Check warning on line 210 in client/src/app/components/SimpleSelectTypeahead.tsx

View check run for this annotation

Codecov / codecov/patch

client/src/app/components/SimpleSelectTypeahead.tsx#L209-L210

Added lines #L209 - L210 were not covered by tests
Expand Down

0 comments on commit 1a4f68a

Please sign in to comment.