Skip to content

Commit

Permalink
added clear method to geosuggest
Browse files Browse the repository at this point in the history
  • Loading branch information
lPadier committed Aug 7, 2015
1 parent f8abe46 commit 2d38a40
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Geosuggest.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ var Geosuggest = React.createClass({
}.bind(this));
},

clear: function () {
this.setState({userInput: ''}, function() {
this.hideSuggests();
}.bind(this));
},

/**
* Search for new suggests
*/
Expand Down

0 comments on commit 2d38a40

Please sign in to comment.