Socket
Socket
Sign inDemoInstall

react-geosuggest-plus

Package Overview
Dependencies
3
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.16.3 to 1.17.0

39

dist/Geosuggest.js

@@ -306,3 +306,19 @@ /* global google */

event.preventDefault();
this.selectSuggest(this.state.activeSuggest);
// If activeSuggest is populated
// then proceed as expected
if (this.state.activeSuggest) {
this.selectSuggest(this.state.activeSuggest);
}
// If the user has inputted text
// AND there are suggestions,
// we'll default to the first suggestion
else if (this.state.userInput && this.state.suggests.length) {
this.selectSuggest(this.state.suggests[0]);
}
// Cascades down to just checking
// if the user has entered text
// We'll just defer to component `onEmptySuggests`
else if (this.state.userInput) {
this.props.onEmptySuggests();
}
break;

@@ -531,2 +547,4 @@ case 9:

};
} else if (this.state.userInput) {
suggestionsSection = this.props.noSuggestionsMarkup;
}

@@ -573,3 +591,4 @@

recentsSection()
)
),
this.props.showButton && this.props.buttonMarkup()
);

@@ -604,3 +623,5 @@ }

types: _react2['default'].PropTypes.any,
recentsLimit: _react2['default'].PropTypes.any
recentsLimit: _react2['default'].PropTypes.any,
showButton: _react2['default'].PropTypes.bool,
buttonMarkup: _react2['default'].PropTypes.func
};

@@ -634,3 +655,13 @@

autoActivateFirstSuggest: false,
recentsLimit: 5
recentsLimit: 5,
showButton: false,
buttonMarkup: function buttonMarkup() {
return _react2['default'].createElement(
'button',
null,
'Enter'
);
},
noSuggestionsMarkup: function noSuggestionsMarkup() {},
onEmptySuggests: function onEmptySuggests() {}
};

@@ -637,0 +668,0 @@

2

package.json
{
"name": "react-geosuggest-plus",
"version": "1.16.3",
"version": "1.17.0",
"description": "A React autosuggest for the Google Maps Places API.",

@@ -5,0 +5,0 @@ "main": "./dist/Geosuggest",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc