Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-google-autocomplete

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-google-autocomplete - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

4

lib/index.js

@@ -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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc