Skip to content

Build your personal knowledge base with Trilium Notes

fix(client): selecting note after split pane opens in wrong pane

Elian Doran7ef05780a618
diff --git a/apps/client/src/widgets/buttons/create_pane_button.ts b/apps/client/src/widgets/buttons/create_pane_button.ts
index 04231d8d43..8a636df056 100644
--- a/apps/client/src/widgets/buttons/create_pane_button.ts
+++ b/apps/client/src/widgets/buttons/create_pane_button.ts
@@ -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");
}
}