Skip to content

Commit 7b5f10f

Browse files
authored
[shared-ui] Trigger edit flow on dblclick of node header (#5078)
#5026
1 parent 27ae371 commit 7b5f10f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.changeset/rotten-walls-add.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@breadboard-ai/shared-ui": patch
3+
---
4+
5+
Trigger edit flow on dblclick of node header

packages/shared-ui/src/elements/step-editor/graph-node.ts

+5
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,11 @@ export class GraphNode extends Box implements DragConnectorReceiver {
566566
@click=${(evt: Event) => {
567567
evt.stopImmediatePropagation();
568568
}}
569+
@dblclick=${() => {
570+
this.dispatchEvent(
571+
new NodeConfigurationRequestEvent(this.nodeId, this.worldBounds)
572+
);
573+
}}
569574
@pointerdown=${(evt: PointerEvent) => {
570575
if (!(evt.target instanceof HTMLElement)) {
571576
return;

0 commit comments

Comments
 (0)