diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-10-31 19:58:58 -0400 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-10-31 16:58:58 -0700 |
commit | 90a0b1d7c6ff0d7bcc752b32390c4c84383c3c2c (patch) | |
tree | 6860c1f922795635a1444817d3c9321f9aa2b57c /webapp/components/channel_members_modal.jsx | |
parent | 3f30aa57eab4d019442b4a5b4150e2dfe890db0b (diff) | |
download | chat-90a0b1d7c6ff0d7bcc752b32390c4c84383c3c2c.tar.gz chat-90a0b1d7c6ff0d7bcc752b32390c4c84383c3c2c.tar.bz2 chat-90a0b1d7c6ff0d7bcc752b32390c4c84383c3c2c.zip |
PLT-4433 Gave focus to the search box when the direct channels or channel member modal is opened (#4391)
Diffstat (limited to 'webapp/components/channel_members_modal.jsx')
-rw-r--r-- | webapp/components/channel_members_modal.jsx | 2 |
1 files changed, 2 insertions, 0 deletions
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()} /> ); } |