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

This commit is contained in:
Elian Doran 2025-05-29 21:02:35 +03:00
parent f4c615cfec
commit 7ef05780a6
No known key found for this signature in database

View File

@ -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");
}
}