Merge pull request #965 from ONLYOFFICE/fix/fix-bugs-on-mobiles

Fix/fix bugs on mobiles
This commit is contained in:
Julia Radzhabova 2021-07-05 23:33:32 +03:00 committed by GitHub
commit d38e88f063
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -104,7 +104,7 @@ class ContextMenuController extends Component {
}
onApiOpenContextMenu(x, y) {
if ( !this.state.opened && $$('.dialog.modal-in').length < 1 && !$$('.popover.modal-in, .sheet-modal.modal-in').length) {
if ( !this.state.opened && $$('.dialog.modal-in, .popover.modal-in, .sheet-modal.modal-in, .popup.modal-in, #pe-preview, .add-comment-popup').length < 1) {
this.setState({
items: this.initMenuItems(),
extraItems: this.initExtraItems()

View file

@ -254,6 +254,7 @@ class AddCommentController extends Component {
};
Common.Notifications.on('addcomment', () => {
f7.popover.close('#idx-context-menu-popover'); //close context menu
this.setState({isOpen: true});
});
}