react-google-autocomplete
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -80,3 +80,3 @@ 'use strict'; | ||
if (_this2.refs && _this2.refs.input) { | ||
_this2.refs.input.autocomplete = 'off'; | ||
_this2.refs.input.autocomplete = _this2.props.inputAutocompleteValue || 'new-password'; | ||
} | ||
@@ -124,3 +124,4 @@ }); | ||
bounds: _propTypes2.default.object, | ||
fields: _propTypes2.default.array | ||
fields: _propTypes2.default.array, | ||
inputAutocompleteValue: _propTypes2.default.string | ||
}; | ||
@@ -154,3 +155,2 @@ exports.default = ReactGoogleAutocomplete; | ||
_this4.props.onOpen(predictions); | ||
console.log(predictions); | ||
} else { | ||
@@ -157,0 +157,0 @@ _this4.props.onClose(); |
{ | ||
"name": "react-google-autocomplete", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "React component for google autocomplete.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,3 +10,4 @@ import React from 'react'; | ||
bounds: PropTypes.object, | ||
fields: PropTypes.array | ||
fields: PropTypes.array, | ||
inputAutocompleteValue: PropTypes.string, | ||
}; | ||
@@ -61,3 +62,3 @@ | ||
if (this.refs && this.refs.input) { | ||
this.refs.input.autocomplete = 'off'; | ||
this.refs.input.autocomplete = this.props.inputAutocompleteValue || 'new-password'; | ||
} | ||
@@ -116,3 +117,2 @@ }); | ||
this.props.onOpen(predictions); | ||
console.log(predictions); | ||
} else { | ||
@@ -119,0 +119,0 @@ this.props.onClose(); |
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
15676