From 90a0b1d7c6ff0d7bcc752b32390c4c84383c3c2c Mon Sep 17 00:00:00 2001 From: Harrison Healey 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/more_direct_channels.jsx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'webapp/components/more_direct_channels.jsx') diff --git a/webapp/components/more_direct_channels.jsx b/webapp/components/more_direct_channels.jsx index b37131aed..52e546cd2 100644 --- a/webapp/components/more_direct_channels.jsx +++ b/webapp/components/more_direct_channels.jsx @@ -11,6 +11,7 @@ import UserStore from 'stores/user_store.jsx'; import TeamStore from 'stores/team_store.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 Constants from 'utils/constants.jsx'; @@ -258,6 +259,7 @@ export default class MoreDirectChannels extends React.Component { nextPage={this.nextPage} search={this.search} actions={[this.createJoinDirectChannelButton]} + focusOnMount={!UserAgent.isMobile()} /> -- cgit v1.2.3-1-g7c22