Stopped automatically focusing user list search box on mobile (#3992)

Этот коммит содержится в:
Harrison Healey
2016-09-08 08:49:12 -04:00
коммит произвёл enahum
родитель faf944f47a
Коммит 04ee6a6afb

Просмотреть файл

@@ -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) {