Skip to content

Commit a9900df

Browse files
authored
Merge pull request #1080 from Pratik5252/fix-#949-search-cancel-button-2.0
Fix search clear button not resetting search state
2 parents 0905dc4 + 1185cf6 commit a9900df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/SearchResults/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ const SearchResults = ({
9898
if (inputRef.current) {
9999
inputRef.current.value = "";
100100
}
101+
onSearchChange("")
101102
};
102103
const submitInput = () => {
103104
if (inputRef.current) {

0 commit comments

Comments
 (0)