From 90a0b1d7c6ff0d7bcc752b32390c4c84383c3c2c Mon Sep 17 00:00:00 2001
From: Harrison Healey <harrisonmhealey@gmail.com>
Date: Mon, 31 Oct 2016 19:58:58 -0400
Subject: PLT-4433 Gave focus to the search box when the direct channels or
 channel member modal is opened (#4391)

---
 webapp/components/channel_members_modal.jsx | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'webapp/components/channel_members_modal.jsx')

diff --git a/webapp/components/channel_members_modal.jsx b/webapp/components/channel_members_modal.jsx
index 561ae595f..286a2243a 100644
--- a/webapp/components/channel_members_modal.jsx
+++ b/webapp/components/channel_members_modal.jsx
@@ -13,6 +13,7 @@ import {searchUsers} from 'actions/user_actions.jsx';
 import {removeUserFromChannel} from 'actions/channel_actions.jsx';
 
 import * as AsyncClient from 'utils/async_client.jsx';
+import * as UserAgent from 'utils/user_agent.jsx';
 import * as Utils from 'utils/utils.jsx';
 
 import React from 'react';
@@ -147,6 +148,7 @@ export default class ChannelMembersModal extends React.Component {
                     nextPage={this.nextPage}
                     search={this.search}
                     actions={removeButton}
+                    focusOnMount={!UserAgent.isMobile()}
                 />
             );
         }
-- 
cgit v1.2.3-1-g7c22

