[DE PE] Fix Bug 53345

This commit is contained in:
ShimaginAndrey 2021-10-26 14:34:02 +03:00
parent efa1e3929a
commit 1961715bf3
2 changed files with 46 additions and 42 deletions

View file

@ -165,9 +165,9 @@ class ContextMenu extends ContextMenuController {
Common.EditorApi.get().SplitCell(parseInt(size[0]), parseInt(size[1])); Common.EditorApi.get().SplitCell(parseInt(size[0]), parseInt(size[1]));
} }
} }
] ],
}).open(); on: {
dialog.on('opened', () => { open: () => {
picker = f7.picker.create({ picker = f7.picker.create({
containerEl: document.getElementById('picker-split-size'), containerEl: document.getElementById('picker-split-size'),
cols: [ cols: [
@ -186,7 +186,9 @@ class ContextMenu extends ContextMenuController {
rotateEffect: true, rotateEffect: true,
value: [3, 3] value: [3, 3]
}); });
}); }
}
}).open();
} }
openLink(url) { openLink(url) {

View file

@ -145,9 +145,9 @@ class ContextMenu extends ContextMenuController {
Common.EditorApi.get().SplitCell(parseInt(size[0]), parseInt(size[1])); Common.EditorApi.get().SplitCell(parseInt(size[0]), parseInt(size[1]));
} }
} }
] ],
}).open(); on: {
dialog.on('opened', () => { open: () => {
picker = f7.picker.create({ picker = f7.picker.create({
containerEl: document.getElementById('picker-split-size'), containerEl: document.getElementById('picker-split-size'),
cols: [ cols: [
@ -166,7 +166,9 @@ class ContextMenu extends ContextMenuController {
rotateEffect: true, rotateEffect: true,
value: [3, 3] value: [3, 3]
}); });
}); }
}
}).open();
} }
openLink(url) { openLink(url) {