mirror of
https://github.com/mattermost/mattermost.git
synced 2026-10-24 02:00:45 +08:00
Stopped automatically focusing user list search box on mobile (#3992)
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
import $ from 'jquery';
|
||||
import ReactDOM from 'react-dom';
|
||||
import * as UserAgent from 'utils/user_agent.jsx';
|
||||
import UserList from './user_list.jsx';
|
||||
|
||||
import {intlShape, injectIntl, defineMessages, FormattedMessage} from 'react-intl';
|
||||
@@ -60,7 +61,10 @@ class FilteredUserList extends React.Component {
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
ReactDOM.findDOMNode(this.refs.filter).focus();
|
||||
// only focus the search box on desktop so that we don't cause the keyboard to open on mobile
|
||||
if (!UserAgent.isMobileApp()) {
|
||||
ReactDOM.findDOMNode(this.refs.filter).focus();
|
||||
}
|
||||
}
|
||||
|
||||
componentDidUpdate(prevProps, prevState) {
|
||||
|
||||
Reference in New Issue
Block a user