Skip to content

Commit 429b0c7

Browse files
committed
publish 1.1.4
1 parent 15b712f commit 429b0c7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ var ReactGoogleAutocomplete = function (_React$Component) {
7777
var observerHack = new MutationObserver(function () {
7878
observerHack.disconnect();
7979
if (_this2.refs && _this2.refs.input) {
80-
_this2.refs.input.autocomplete = 'off';
80+
_this2.refs.input.autocomplete = _this2.props.inputAutocompleteValue || 'new-password';
8181
}
8282
});
8383
observerHack.observe(this.refs.input, {
@@ -120,7 +120,8 @@ ReactGoogleAutocomplete.propTypes = {
120120
types: _propTypes2.default.array,
121121
componentRestrictions: _propTypes2.default.object,
122122
bounds: _propTypes2.default.object,
123-
fields: _propTypes2.default.array
123+
fields: _propTypes2.default.array,
124+
inputAutocompleteValue: _propTypes2.default.string
124125
};
125126
exports.default = ReactGoogleAutocomplete;
126127

@@ -149,7 +150,6 @@ var ReactCustomGoogleAutocomplete = exports.ReactCustomGoogleAutocomplete = func
149150
this.service.getPlacePredictions({ input: e.target.value, types: types }, function (predictions, status) {
150151
if (status === 'OK' && predictions && predictions.length > 0) {
151152
_this4.props.onOpen(predictions);
152-
console.log(predictions);
153153
} else {
154154
_this4.props.onClose();
155155
}

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.3",
3+
"version": "1.1.4",
44
"description": "React component for google autocomplete.",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)