Skip to content

Commit

Permalink
Merge pull request RocketChat#287 from shubhsherl/fix_userinfo
Browse files Browse the repository at this point in the history
Fix UserInfo on mobile device
  • Loading branch information
ear-dev authored May 29, 2020
2 parents 628f094 + 6b8bc64 commit fe8a1a5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/ui-flextab/client/tabs/membersList.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { getActions } from './userActions';
import { RoomManager, popover } from '../../../ui-utils';
import { ChatRoom, Subscriptions } from '../../../models';
import { settings } from '../../../settings';
import { t, isRtl, handleError, roomTypes } from '../../../utils';
import { t, isRtl, handleError, roomTypes, isMobile } from '../../../utils';
import { WebRTC } from '../../../webrtc/client';
import { hasPermission } from '../../../authorization';

Expand Down Expand Up @@ -311,7 +311,9 @@ Template.membersList.onCreated(function() {
});

Template.membersList.onRendered(function() {
this.firstNode.parentNode.querySelector('#user-search').focus();
if (!isMobile()) {
this.firstNode.parentNode.querySelector('#user-search').focus();
}
this.autorun(() => {
const showAllUsers = this.showAllUsers.get();
const statusTypeSelect = this.find('.js-type');
Expand Down

0 comments on commit fe8a1a5

Please sign in to comment.