From 3c40045a9b6977c608567d45f0ef03194ab2169b Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Tue, 29 Sep 2020 16:18:43 -0400 Subject: [PATCH] After splitting, select the nodes as well as the resultant ways, but don't select any relations (close #5174) --- modules/operations/split.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/operations/split.js b/modules/operations/split.js index d43344309..bd641808e 100644 --- a/modules/operations/split.js +++ b/modules/operations/split.js @@ -36,7 +36,12 @@ export function operationSplit(context, selectedIDs) { var operation = function() { var difference = context.perform(_action, operation.annotation()); - context.enter(modeSelect(context, difference.extantIDs())); + // select both the nodes and the ways so the mapper can immediately disconnect them if desired + var idsToSelect = _vertexIds.concat(difference.extantIDs().filter(function(id) { + // filter out relations that may have had member additions + return context.entity(id).type === 'way'; + })); + context.enter(modeSelect(context, idsToSelect)); };