Skip to content

Commit

Permalink
Revert "Temporary port of mui#4241"
Browse files Browse the repository at this point in the history
This reverts commit 427d431.
  • Loading branch information
mwildehahn committed Jun 5, 2016
1 parent 6ba576b commit d3bea19
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/AutoComplete/AutoComplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,13 +260,15 @@ class AutoComplete extends Component {
const chosenRequest = dataSource[index];
const searchText = typeof chosenRequest === 'string' ? chosenRequest : chosenRequest.text;

this.props.onNewRequest(chosenRequest, index);

this.timerTouchTapCloseId = setTimeout(() => {
this.setState({
searchText: searchText,
});
this.close();
this.timerTouchTapCloseId = null;
}, this.props.menuCloseDelay);

this.setState({ searchText: searchText });
this.props.onNewRequest(chosenRequest, index);
};

handleEscKeyDown = () => {
Expand Down

0 comments on commit d3bea19

Please sign in to comment.