fix(MoreTab): Fix languages not being scrollable on mobile
This commit is contained in:
parent
b1eff72394
commit
1b1d650b75
|
@ -10,6 +10,7 @@ import React from 'react';
|
|||
import { AbstractDialogTab } from '../../../base/dialog';
|
||||
import type { Props as AbstractDialogTabProps } from '../../../base/dialog';
|
||||
import { translate } from '../../../base/i18n';
|
||||
import TouchmoveHack from '../../../chat/components/web/TouchmoveHack';
|
||||
|
||||
/**
|
||||
* The type of the React {@code Component} props of {@link MoreTab}.
|
||||
|
@ -185,6 +186,7 @@ class MoreTab extends AbstractDialogTab<Props, State> {
|
|||
{ t('settings.language') }
|
||||
</div>
|
||||
<div className = 'dropdown-menu'>
|
||||
<TouchmoveHack isModal = { true }>
|
||||
<DropdownMenu
|
||||
isOpen = { this.state.isLanguageSelectOpen }
|
||||
onOpenChange = { this._onLanguageDropdownOpenChange }
|
||||
|
@ -200,6 +202,7 @@ class MoreTab extends AbstractDialogTab<Props, State> {
|
|||
{ languageItems }
|
||||
</DropdownItemGroup>
|
||||
</DropdownMenu>
|
||||
</TouchmoveHack>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue