Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 7ef0578

Browse files
committed
fix(client): selecting note after split pane opens in wrong pane
1 parent f4c615c commit 7ef0578

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/client/src/widgets/buttons/create_pane_button.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ export default class CreatePaneButton extends OnClickButtonWidget {
88
this.icon("bx-dock-right")
99
.title(t("create_pane_button.create_new_split"))
1010
.titlePlacement("bottom")
11-
.onClick((widget) => widget.triggerCommand("openNewNoteSplit", { ntxId: widget.getClosestNtxId() }))
11+
.onClick((widget, e) => {
12+
widget.triggerCommand("openNewNoteSplit", { ntxId: widget.getClosestNtxId() });
13+
e.stopPropagation();
14+
})
1215
.class("icon-action");
1316
}
1417
}

0 commit comments

Comments
 (0)