[MM-19045] Do not focus search box after clicking a hashtag (#3356)

This commit is contained in:
Michael Kochell 2019-10-09 09:30:17 -06:00 committed by GitHub
parent 1837dd1167
commit e137b46573
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,7 +109,7 @@ export default class Search extends PureComponent {
}
setTimeout(() => {
if (this.refs.searchBar) {
if (this.refs.searchBar && !this.props.initialValue) {
this.refs.searchBar.focus();
}
}, 150);
@ -840,4 +840,3 @@ const getStyleFromTheme = makeStyleSheetFromTheme((theme) => {
},
};
});