From 3e675ce7a2032a0ec1fb523f5a4ad3690b3d4013 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Thu, 27 Sep 2018 08:40:35 -0400 Subject: [PATCH] MM-10273 Always focus search input when first opening (#2174) --- app/screens/search/search.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/screens/search/search.js b/app/screens/search/search.js index 6578c9ebf..fea9fb945 100644 --- a/app/screens/search/search.js +++ b/app/screens/search/search.js @@ -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) {