diff --git a/src/AutoComplete/AutoComplete.js b/src/AutoComplete/AutoComplete.js index 2dc86bda7093ee..279d86aa1ff570 100644 --- a/src/AutoComplete/AutoComplete.js +++ b/src/AutoComplete/AutoComplete.js @@ -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 = () => {