[mobile] fixed context menu

This commit is contained in:
Maxim Kadushkin 2021-03-01 21:55:58 +03:00
parent 37cce9d295
commit dd78ba9395
2 changed files with 3 additions and 2 deletions

View file

@ -24,7 +24,7 @@ class ContextMenuController extends Component {
this.$targetEl = $$(idCntextMenuTargetElement); this.$targetEl = $$(idCntextMenuTargetElement);
if ( !this.$targetEl.length ) { if ( !this.$targetEl.length ) {
// this.$targetEl = $$('<div id="idx-context-menu-target" style="position:absolute;width:15px;height:15px;background-color:green;z-index:1;"></div>'); // this.$targetEl = $$('<div id="idx-context-menu-target" style="position:absolute;width:15px;height:15px;background-color:green;z-index:1;"></div>');
this.$targetEl = $$(`<div id="${idCntextMenuTargetElement} style="position:absolute;"></div>`); this.$targetEl = $$(`<div id="${idCntextMenuTargetElement.substr(1)}" style="position:absolute;"></div>`);
this.$targetEl.css({left: '-10000px', top: '-10000px'}); this.$targetEl.css({left: '-10000px', top: '-10000px'});
$$('#editor_sdk').append(this.$targetEl); $$('#editor_sdk').append(this.$targetEl);

View file

@ -38,4 +38,5 @@ class ContextMenuView extends Component {
} }
} }
export {ContextMenuView as default, idContextMenuElement}; const exportedIdMenuElemen = `#${idContextMenuElement}`;
export {ContextMenuView as default, exportedIdMenuElemen as idContextMenuElement};