Skip to content

Commit 0dd6a00

Browse files
committed
fix: add cancel onSearchDebounced at handleClear
Signed-off-by: Tomás Castillo <tcastilloboireau@gmail.com>
1 parent 39bac29 commit 0dd6a00

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/components/mui/search-input.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const SearchInput = ({ term, onSearch, placeholder = "Search...", debounced }) =
2626
}, [term]);
2727

2828
const handleClear = () => {
29+
onSearchDebounced?.cancel();
2930
setSearchTerm("");
3031
onSearch("");
3132
};

0 commit comments

Comments
 (0)