react-geosuggest
Advanced tools
Comparing version 1.16.1 to 1.17.0
@@ -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 @@ |
@@ -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 |
{ | ||
"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. |
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
50872
707
277