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.
2 parents 014627b + ebe53c8 commit 5b63410Copy full SHA for 5b63410
client/modules/IDE/components/Searchbar/Searchbar.jsx
@@ -26,12 +26,13 @@ class Searchbar extends React.Component {
26
27
handleSearchEnter = (e) => {
28
if (e.key === 'Enter') {
29
- this.props.setSearchTerm(this.state.searchValue);
+ this.searchChange();
30
}
31
32
33
- searchChange = (value) => {
34
+ searchChange = () => {
+ if (this.state.searchValue.trim().length === 0) return;
35
+ this.props.setSearchTerm(this.state.searchValue.trim());
36
};
37
38
handleSearchChange = (e) => {
0 commit comments