Skip to content

Commit a937b76

Browse files
authored
Merge pull request #1518 from SundeepChand/bugfix/issue#1512
Bugfix/issue#1512
2 parents 7dbcde4 + 8d379b5 commit a937b76

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

client/modules/IDE/components/Searchbar/Searchbar.jsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,13 @@ class Searchbar extends React.Component {
2323
});
2424
}
2525

26-
handleSearchEnter = (e) => {
27-
if (e.key === 'Enter') {
28-
this.searchChange();
29-
}
30-
}
31-
3226
searchChange = () => {
33-
if (this.state.searchValue.trim().length === 0) return;
3427
this.props.setSearchTerm(this.state.searchValue.trim());
3528
};
3629

3730
handleSearchChange = (e) => {
3831
this.setState({ searchValue: e.target.value }, () => {
39-
this.throttledSearchChange(this.state.searchValue);
32+
this.throttledSearchChange(this.state.searchValue.trim());
4033
});
4134
}
4235

@@ -53,7 +46,6 @@ class Searchbar extends React.Component {
5346
value={searchValue}
5447
placeholder={this.props.searchLabel}
5548
onChange={this.handleSearchChange}
56-
onKeyUp={this.handleSearchEnter}
5749
/>
5850
<button
5951
className="searchbar__clear-button"

developer_docs/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ _Note_: The installation steps assume you are using a Unix-like shell. If you ar
2525
* For Mac OSX with [homebrew](http://brew.sh/): `brew tap mongodb/brew` then `brew install mongodb-community` and finally start the server with `brew services start mongodb-community` or you can visit the installation guide here [Installation Guide For MacOS](https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/)
2626
* For Windows and Linux: [MongoDB Installation](https://docs.mongodb.com/manual/installation/)
2727
7. `$ cp .env.example .env`
28-
8. (Optional) Update `.env` with necessary keys to enable certain app behavoirs, i.e. add Github ID and Github Secret if you want to be able to log in with Github.
28+
8. (Optional) Update `.env` with necessary keys to enable certain app behaviors, i.e. add Github ID and Github Secret if you want to be able to log in with Github.
2929
9. `$ npm run fetch-examples` - this downloads the example sketches into a user called 'p5'
3030
10. `$ npm start`
3131
11. Navigate to [http://localhost:8000](http://localhost:8000) in your browser

0 commit comments

Comments
 (0)