react-geosuggest
Advanced tools
Comparing version 1.7.0 to 1.8.0
@@ -0,1 +1,8 @@ | ||
## 1.8.0 (2015-09-01) | ||
#### Features | ||
* **input:** add method to change the value of the user input ([44d86f5](https://github.com/ubilabs/react-geosuggest/commit/44d86f5842765b72cb3db073feb016f750898e1f) | ||
## 1.7.0 (2015-08-19) | ||
@@ -2,0 +9,0 @@ |
@@ -61,2 +61,10 @@ /* global google */ | ||
/** | ||
* Update the value of the user input | ||
* @param {String} value the new value of the user input | ||
*/ | ||
update: function update(value) { | ||
this.setState({ userInput: value }); | ||
}, | ||
/* | ||
@@ -63,0 +71,0 @@ * Clear the input and close the suggestion pane |
{ | ||
"name": "react-geosuggest", | ||
"version": "1.7.0", | ||
"version": "1.8.0", | ||
"description": "A React autosuggest for the Google Maps Places API.", | ||
@@ -5,0 +5,0 @@ "main": "module/Geosuggest.js", |
@@ -137,5 +137,8 @@ # React Geosuggest | ||
#### clear | ||
It is possible to clear the value of the input contained within the GeoSuggest component by calling the `clear` function. | ||
#### update(value) | ||
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. | ||
#### clear() | ||
It is also possible to clear the value of the input contained within the GeoSuggest component by calling the `clear` function. | ||
### Example | ||
@@ -142,0 +145,0 @@ |
27842
8
338
234