mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
fix(client): selecting note after split pane opens in wrong pane
This commit is contained in:
parent
f4c615cfec
commit
7ef05780a6
@ -8,7 +8,10 @@ export default class CreatePaneButton extends OnClickButtonWidget {
|
|||||||
this.icon("bx-dock-right")
|
this.icon("bx-dock-right")
|
||||||
.title(t("create_pane_button.create_new_split"))
|
.title(t("create_pane_button.create_new_split"))
|
||||||
.titlePlacement("bottom")
|
.titlePlacement("bottom")
|
||||||
.onClick((widget) => widget.triggerCommand("openNewNoteSplit", { ntxId: widget.getClosestNtxId() }))
|
.onClick((widget, e) => {
|
||||||
|
widget.triggerCommand("openNewNoteSplit", { ntxId: widget.getClosestNtxId() });
|
||||||
|
e.stopPropagation();
|
||||||
|
})
|
||||||
.class("icon-action");
|
.class("icon-action");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user