diff options
author | Nick Frazier <nrflaw@gmail.com> | 2016-12-09 22:46:52 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-12-09 22:46:52 -0500 |
commit | cb870c83d1f3135b2b339f3444cfa7c632c4d5bd (patch) | |
tree | dae26949955feca9a26e20f0d3e7890ab115b93c /webapp/components/channel_invite_modal.jsx | |
parent | c2be6497ebc3dd586f4fbd61f76ac6cef23a9acf (diff) | |
download | chat-cb870c83d1f3135b2b339f3444cfa7c632c4d5bd.tar.gz chat-cb870c83d1f3135b2b339f3444cfa7c632c4d5bd.tar.bz2 chat-cb870c83d1f3135b2b339f3444cfa7c632c4d5bd.zip |
PLT-4783 Fix autofocus for "Add/Manage Members" and "More public channels" modals (#4610)
* test fix
* additional test fix
* removed commented line
* test fix
additional test fix
removed commented line
fixed sidebar, rolled back web_client fix
* fix for more_channels input focus bug
Diffstat (limited to 'webapp/components/channel_invite_modal.jsx')
-rw-r--r-- | webapp/components/channel_invite_modal.jsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/webapp/components/channel_invite_modal.jsx b/webapp/components/channel_invite_modal.jsx index a9655f183..4b72cfc40 100644 --- a/webapp/components/channel_invite_modal.jsx +++ b/webapp/components/channel_invite_modal.jsx @@ -12,6 +12,7 @@ import TeamStore from 'stores/team_store.jsx'; import {searchUsers} from 'actions/user_actions.jsx'; import * as AsyncClient from 'utils/async_client.jsx'; +import * as UserAgent from 'utils/user_agent.jsx'; import React from 'react'; import {Modal} from 'react-bootstrap'; @@ -140,6 +141,7 @@ export default class ChannelInviteModal extends React.Component { nextPage={this.nextPage} search={this.search} actions={[ChannelInviteButton]} + focusOnMount={!UserAgent.isMobile()} actionProps={{ channel: this.props.channel, onInviteError: this.handleInviteError |