Skip to content

Commit 98d4ac8

Browse files
authored
Merge pull request #1078 from Pratik5252/fix-#949-search-cancel-button
Fix search clear button not resetting search state
2 parents ec710d2 + f55598a commit 98d4ac8

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)