After splitting, select the nodes as well as the resultant ways, but don't select any relations (close #5174)

This commit is contained in:
Quincy Morgan
2020-09-29 16:18:43 -04:00
parent 93be5a8251
commit 3c40045a9b
+6 -1
View File
@@ -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));
};