@@ -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} ;
125126exports . 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 }
0 commit comments