[mobile] Fix bug 51099

This commit is contained in:
JuliaSvinareva 2021-07-05 23:01:51 +03:00
parent dc77b19ec2
commit a39655f0e8
2 changed files with 2 additions and 1 deletions

View file

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

View file

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