react-google-autocomplete
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -92,3 +92,3 @@ 'use strict'; | ||
value: function componentWillUnmount() { | ||
this.event.remove(); | ||
if (this.event) this.event.remove(); | ||
} | ||
@@ -98,3 +98,3 @@ }, { | ||
value: function onSelected() { | ||
if (this.props.onPlaceSelected) { | ||
if (this.props.onPlaceSelected && this.autocomplete) { | ||
this.props.onPlaceSelected(this.autocomplete.getPlace(), this.refs.input); | ||
@@ -101,0 +101,0 @@ } |
{ | ||
"name": "react-google-autocomplete", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "React component for google autocomplete.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -71,7 +71,7 @@ import React from 'react'; | ||
componentWillUnmount() { | ||
this.event.remove(); | ||
if (this.event) this.event.remove(); | ||
} | ||
onSelected() { | ||
if (this.props.onPlaceSelected) { | ||
if (this.props.onPlaceSelected && this.autocomplete) { | ||
this.props.onPlaceSelected(this.autocomplete.getPlace(), this.refs.input); | ||
@@ -78,0 +78,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15583