Skip to content

Commit

Permalink
remove refs.input checks
Browse files Browse the repository at this point in the history
  • Loading branch information
danvk committed Dec 1, 2014
1 parent bcd7abb commit ab7f54d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cycledash/static/js/examine/components/QueryBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ var QueryBox = React.createClass({
this.initQueryBox();
}

if (prevProps.query != this.props.query && this.refs.input) {
if (prevProps.query != this.props.query) {
this.setQueryBoxToQuery();
}
},
Expand Down Expand Up @@ -104,9 +104,6 @@ var QueryBox = React.createClass({

// Update the CQL box to reflect this.props.query.
setQueryBoxToQuery: function() {
if (!this.refs.input) {
return; // not defined yet the first time through
}
if (document.activeElement == this.refs.input.getDOMNode()) {
return; // never change the text while the user is typing.
}
Expand Down

0 comments on commit ab7f54d

Please sign in to comment.