mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
🐛 当前页签没有激活时编辑器没有初始化
This commit is contained in:
parent
bf2bd552ff
commit
6cd50643c6
2 changed files with 42 additions and 43 deletions
|
|
@ -23,7 +23,7 @@ export class Menus {
|
|||
const dataType = target.getAttribute("data-type");
|
||||
if (dataType === "tab-header") {
|
||||
this.unselect();
|
||||
initTabMenu(dataType, (getInstanceById(target.getAttribute("data-id")) as Tab).model).popup({
|
||||
initTabMenu((getInstanceById(target.getAttribute("data-id")) as Tab)).popup({
|
||||
x: event.clientX,
|
||||
y: event.clientY
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue