summaryrefslogtreecommitdiffstats
path: root/webapp/components/search_results.jsx
diff options
context:
space:
mode:
authorSaturnino Abril <saturnino.abril@gmail.com>2017-03-04 03:20:06 +0900
committerenahum <nahumhbl@gmail.com>2017-03-03 15:20:06 -0300
commit74c1fbbcf76157493bf29ac25923f612efb0782d (patch)
treee74440d704e566c6cb0c3f0855099c42ed27b31a /webapp/components/search_results.jsx
parentf37c03a75f745f00d13b91140a9e6fb9a8d5799a (diff)
downloadchat-74c1fbbcf76157493bf29ac25923f612efb0782d.tar.gz
chat-74c1fbbcf76157493bf29ac25923f612efb0782d.tar.bz2
chat-74c1fbbcf76157493bf29ac25923f612efb0782d.zip
Mobile Web: Auto-focus cursor in the search box (#5284)
* Mobile Web: Auto-focus cursor in the search box and open keyboard when the search icon is tapped * fixed issue with safari mobile view * added isFocus props to search_bar.jsx component * used 'x' and fixed spacing * changed 'x' icon and fixed css * added aria-hidden='true'
Diffstat (limited to 'webapp/components/search_results.jsx')
-rw-r--r--webapp/components/search_results.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/search_results.jsx b/webapp/components/search_results.jsx
index 86d1bac1d..4c0105738 100644
--- a/webapp/components/search_results.jsx
+++ b/webapp/components/search_results.jsx
@@ -171,7 +171,7 @@ export default class SearchResults extends React.Component {
var currentId = UserStore.getCurrentId();
var searchForm = null;
if (currentId) {
- searchForm = <SearchBox/>;
+ searchForm = <SearchBox isFocus={Utils.isMobile()}/>;
}
var noResults = (!results || !results.order || !results.order.length);
const searchTerm = this.state.searchTerm;