We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d37c552 commit e299bf2Copy full SHA for e299bf2
client/modules/IDE/components/Searchbar/Searchbar.jsx
@@ -35,6 +35,11 @@ class Searchbar extends React.Component {
35
};
36
37
handleSearchChange = (e) => {
38
+ if (e.target.value === '') {
39
+ // Manually reset the searchValue if the search field becomes empty.
40
+ this.handleResetSearch();
41
+ return;
42
+ }
43
this.setState({ searchValue: e.target.value }, () => {
44
this.throttledSearchChange(this.state.searchValue);
45
});
0 commit comments