Removed timeout

This commit is contained in:
SergeyEzhin 2021-08-09 17:15:28 +03:00
parent 5a376cc3eb
commit 179aad0d22

View file

@ -126,13 +126,11 @@ class ContextMenuController extends Component {
onApiHideContextMenu() {
if ( this.state.opened ) {
setTimeout(() => {
$$(idContextMenuElement).hide();
f7.popover.close(idContextMenuElement, false);
this.$targetEl.css({left: '-10000px', top: '-10000px'});
this.setState({opened: false});
}, 800);
$$(idContextMenuElement).hide();
f7.popover.close(idContextMenuElement, false);
this.$targetEl.css({left: '-10000px', top: '-10000px'});
this.setState({opened: false});
}
}