Merge pull request #965 from ONLYOFFICE/fix/fix-bugs-on-mobiles
Fix/fix bugs on mobiles
This commit is contained in:
commit
d38e88f063
|
@ -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()
|
||||
|
|
|
@ -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});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue