only focus search box when we enter through the search icon in navbar (#3433)
This commit is contained in:
parent
e6e3fd23bf
commit
1bb89e1809
1 changed files with 1 additions and 2 deletions
|
|
@ -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) => {
|
|||
},
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue