Socket
Socket
Sign inDemoInstall

react-geosuggest

Package Overview
Dependencies
Maintainers
3
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-geosuggest - npm Package Compare versions

Comparing version 1.16.1 to 1.17.0

11

CHANGELOG.md

@@ -0,1 +1,12 @@

## 1.17.0 (2016-02-10)
#### Bug Fixes
* Handle null value for Google suggestions ([cfd84ad](cfd84adeebda41d2b7e27576716fb3a30f63182c))
#### Features
* add focus() to focus on the element ([11c08af5](https://github.com/ubilabs/react-geosuggest/commit/11c08af5808d197254cbdfe3a78f99eafe0840b2))
### 1.16.1 (2016-02-07)

@@ -2,0 +13,0 @@

12

module/Geosuggest.js

@@ -165,2 +165,11 @@ /* global window */

/**
* Focus the input
*/
}, {
key: 'focus',
value: function focus() {
this.refs.input.focus();
}
/**
* Update the value of the user input

@@ -219,3 +228,3 @@ * @param {String} userInput the new value of the user input

this.autocompleteService.getPlacePredictions(options, function (suggestsGoogle) {
_this3.updateSuggests(suggestsGoogle);
_this3.updateSuggests(suggestsGoogle || []); // can be null

@@ -394,2 +403,3 @@ if (_this3.props.autoActivateFirstSuggest) {

_react2['default'].createElement(_input2['default'], _extends({ className: this.props.inputClassName,
ref: 'input',
value: this.state.userInput,

@@ -396,0 +406,0 @@ onChange: this.onInputChange.bind(this),

@@ -100,2 +100,11 @@ 'use strict';

/**
* Focus the input
*/
}, {
key: 'focus',
value: function focus() {
this.refs.input.focus();
}
/**
* Render the view

@@ -102,0 +111,0 @@ * @return {Function} The React element to render

2

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

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

@@ -177,2 +177,5 @@ # React Geosuggest [![Build Status](https://travis-ci.org/ubilabs/react-geosuggest.svg?branch=master)](https://travis-ci.org/ubilabs/react-geosuggest)

#### focus()
Call `focus` to focus on the element. The suggest list will be expanded with the current suggestions.
#### update(value)

@@ -179,0 +182,0 @@ It is possible to update the value of the input contained within the GeoSuggest component by calling the `update` function with a new desired `value` of the type String.

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