[mobile] Fix bug 51099
This commit is contained in:
parent
dc77b19ec2
commit
a39655f0e8
|
@ -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()
|
||||||
|
|
|
@ -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});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue