Skip to content

Commit

Permalink
fix: upgrade code to 0.14, too
Browse files Browse the repository at this point in the history
  • Loading branch information
ro-ka committed Oct 12, 2015
1 parent 3b60165 commit c5f64d4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion example/src/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* global google */

var React = require('react'),
ReactDOM = require('react-dom'),
Geosuggest = require('../../src/Geosuggest'); // eslint-disable-line

var App = React.createClass({ // eslint-disable-line
Expand Down Expand Up @@ -56,4 +57,4 @@ var App = React.createClass({ // eslint-disable-line
}
});

React.render(<App />, document.getElementById('app')); // eslint-disable-line
ReactDOM.render(<App />, document.getElementById('app')); // eslint-disable-line
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"eslint": "^1.5.1",
"gh-pages": "^0.4.0",
"light-server": "^1.0.3",
"react-dom": "^0.14.0",
"uglifyjs": "^2.4.10"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/Geosuggest.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const Geosuggest = React.createClass({
* When the input got changed
*/
onInputChange: function() {
var userInput = this.refs.geosuggestInput.getDOMNode().value;
var userInput = this.refs.geosuggestInput.value;

this.setState({userInput: userInput}, function() {
this.showSuggests();
Expand Down

0 comments on commit c5f64d4

Please sign in to comment.