Skip to content

Commit 9cf3515

Browse files
committed
Update version
1 parent 1b5b11f commit 9cf3515

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ var ReactGoogleAutocomplete = function (_React$Component) {
8989
}, {
9090
key: 'componentWillUnmount',
9191
value: function componentWillUnmount() {
92-
this.event.remove();
92+
if (this.event) this.event.remove();
9393
}
9494
}, {
9595
key: 'onSelected',
9696
value: function onSelected() {
97-
if (this.props.onPlaceSelected) {
97+
if (this.props.onPlaceSelected && this.autocomplete) {
9898
this.props.onPlaceSelected(this.autocomplete.getPlace(), this.refs.input);
9999
}
100100
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-google-autocomplete",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "React component for google autocomplete.",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)