MM-10273 Always focus search input when first opening (#2174)

This commit is contained in:
Harrison Healey 2018-09-27 08:40:35 -04:00 committed by GitHub
parent 7bb7e30a71
commit 3e675ce7a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,13 +106,13 @@ export default class Search extends PureComponent {
if (this.props.initialValue) {
this.search(this.props.initialValue);
} else {
setTimeout(() => {
if (this.refs.searchBar) {
this.refs.searchBar.focus();
}
}, 150);
}
setTimeout(() => {
if (this.refs.searchBar) {
this.refs.searchBar.focus();
}
}, 150);
}
componentDidUpdate(prevProps) {