Removed timeout
This commit is contained in:
parent
5a376cc3eb
commit
179aad0d22
|
@ -126,13 +126,11 @@ class ContextMenuController extends Component {
|
||||||
|
|
||||||
onApiHideContextMenu() {
|
onApiHideContextMenu() {
|
||||||
if ( this.state.opened ) {
|
if ( this.state.opened ) {
|
||||||
setTimeout(() => {
|
$$(idContextMenuElement).hide();
|
||||||
$$(idContextMenuElement).hide();
|
f7.popover.close(idContextMenuElement, false);
|
||||||
f7.popover.close(idContextMenuElement, false);
|
|
||||||
|
this.$targetEl.css({left: '-10000px', top: '-10000px'});
|
||||||
this.$targetEl.css({left: '-10000px', top: '-10000px'});
|
this.setState({opened: false});
|
||||||
this.setState({opened: false});
|
|
||||||
}, 800);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue