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

pull/2059/head
Elian Doran 2025-05-29 21:02:35 +07:00
parent f4c615cfec
commit 7ef05780a6
No known key found for this signature in database
1 changed files with 4 additions and 1 deletions

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