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 cb3c824 commit dab1e53Copy full SHA for dab1e53
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