diff --git a/modules/modes/select.js b/modules/modes/select.js index 5af485984..0f614477f 100644 --- a/modules/modes/select.js +++ b/modules/modes/select.js @@ -233,7 +233,18 @@ export function modeSelect(context, selectedIDs) { mode.enter = function() { if (!checkSelectedIDs()) return; - context.features().forceVisible(selectedIDs); + var forceVisibleIDs = selectedIDs.slice(); + + selectedIDs.forEach(function(id) { + var entity = context.entity(id); + if (entity.type === 'relation') { + forceVisibleIDs = forceVisibleIDs.concat(entity.members.map(function(member) { + return member.id; + })); + } + }); + + context.features().forceVisible(forceVisibleIDs); var operations = Object.values(Operations) .map(function(o) { return o(selectedIDs, context); })