Merge branch 'develop' into kegan/invite-autocompleting-race

This commit is contained in:
Kegan Dougal
2016-02-08 15:06:13 +00:00
2 changed files with 7 additions and 5 deletions

View File

@@ -81,6 +81,8 @@ var SearchableEntityList = React.createClass({
var q = ev.target.value;
this.setState({
query: q,
// reset truncation if they back out the entire text
truncateAt: (q.length === 0 ? this.props.truncateAt : this.state.truncateAt),
results: this.getSearchResults(q, this.props.entities)
}, () => {
// invoke the callback AFTER we've flushed the new state. We need to