[mobile] Fix bugs 51080, 51081, 50867

This commit is contained in:
JuliaSvinareva 2021-07-05 22:12:50 +03:00
parent 322f8930ec
commit dc77b19ec2

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').length < 1) {
this.setState({
items: this.initMenuItems(),
extraItems: this.initExtraItems()