MM-10273 Always focus search input when first opening (#2174)
This commit is contained in:
parent
7bb7e30a71
commit
3e675ce7a2
1 changed files with 6 additions and 6 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue