Merge branch 'develop' into kegan/invite-autocompleting-race
This commit is contained in:
commit
70ed0be389
2 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue