1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Ensure added junc(s) are selected

Feature parity with insert node, insert links etc
This commit is contained in:
Steve-Mcl 2022-07-13 12:43:58 +01:00
parent c648e1e8d6
commit 75d3444391
2 changed files with 2 additions and 0 deletions

View File

@ -97,6 +97,7 @@ RED.contextMenu = (function () {
RED.nodes.addJunction(nn);
RED.history.push(historyEvent);
RED.nodes.dirty(true);
RED.view.select({nodes: [nn] });
RED.view.redraw(true)
}
},

View File

@ -1187,6 +1187,7 @@ RED.view.tools = (function() {
removedLinks: Array.from(removedLinks)
})
RED.nodes.dirty(true)
RED.view.select({nodes: addedJunctions });
}
RED.view.redraw(true);
}