Skip to content

Commit

Permalink
chore(release): version 1.17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ro-ka committed Feb 10, 2016
1 parent 364fdee commit e439c47
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 3 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## 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)

#### Bug Fixes
Expand Down
21 changes: 20 additions & 1 deletion dist/react-geosuggest.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,15 @@ var Geosuggest = (function (_React$Component) {
}
}

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

/**
* Update the value of the user input
* @param {String} userInput the new value of the user input
Expand Down Expand Up @@ -266,7 +275,7 @@ var Geosuggest = (function (_React$Component) {
}

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

if (_this3.props.autoActivateFirstSuggest) {
_this3.activateSuggest('next');
Expand Down Expand Up @@ -440,6 +449,7 @@ var Geosuggest = (function (_React$Component) {
'div',
{ className: classes },
_react2['default'].createElement(_input2['default'], _extends({ className: this.props.inputClassName,
ref: 'input',
value: this.state.userInput,
onChange: this.onInputChange.bind(this),
onFocus: this.onInputFocus.bind(this),
Expand Down Expand Up @@ -642,6 +652,15 @@ var Input = (function (_React$Component) {
}
}

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

/**
* Render the view
* @return {Function} The React element to render
Expand Down
Loading

0 comments on commit e439c47

Please sign in to comment.