mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
fix(client): selecting note after split pane opens in wrong pane
This commit is contained in:
@@ -8,7 +8,10 @@ export default class CreatePaneButton extends OnClickButtonWidget {
|
||||
this.icon("bx-dock-right")
|
||||
.title(t("create_pane_button.create_new_split"))
|
||||
.titlePlacement("bottom")
|
||||
.onClick((widget) => widget.triggerCommand("openNewNoteSplit", { ntxId: widget.getClosestNtxId() }))
|
||||
.onClick((widget, e) => {
|
||||
widget.triggerCommand("openNewNoteSplit", { ntxId: widget.getClosestNtxId() });
|
||||
e.stopPropagation();
|
||||
})
|
||||
.class("icon-action");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user