From f093a0ead0f7023710d5fe97ec52a5ee9e5a4feb Mon Sep 17 00:00:00 2001 From: Mohamed Ali Date: Fri, 29 Dec 2023 21:38:36 +0300 Subject: [PATCH] Select Activity node after adding (#100) --- .../ClientLib/src/designer/api/add-activity-node.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/Elsa.Studio.Workflows.Designer/ClientLib/src/designer/api/add-activity-node.ts b/src/modules/Elsa.Studio.Workflows.Designer/ClientLib/src/designer/api/add-activity-node.ts index f9502a85..887e2cfb 100644 --- a/src/modules/Elsa.Studio.Workflows.Designer/ClientLib/src/designer/api/add-activity-node.ts +++ b/src/modules/Elsa.Studio.Workflows.Designer/ClientLib/src/designer/api/add-activity-node.ts @@ -14,4 +14,6 @@ export async function addActivityNode(graphId: string, node: Node.Properties) { // Add the node to the graph. graph.addNode(node); + graph.cleanSelection(); + graph.select(node.id); } \ No newline at end of file