[mobile] Fix open context menu, when dialog is opened

This commit is contained in:
JuliaSvinareva 2021-04-28 12:04:50 +03:00
parent 5f59be85ee
commit 8cdb629864

View file

@ -103,7 +103,7 @@ class ContextMenuController extends Component {
} }
onApiOpenContextMenu(x, y) { onApiOpenContextMenu(x, y) {
if ( !this.state.opened ) { if ( !this.state.opened && $$('.dialog.modal-in').length < 1) {
this.setState({ this.setState({
items: this.initMenuItems(), items: this.initMenuItems(),
extraItems: this.initExtraItems() extraItems: this.initExtraItems()