mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-24 09:04:02 +02:00
After splitting, select the nodes as well as the resultant ways, but don't select any relations (close #5174)
This commit is contained in:
@@ -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));
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user