From 151e2685d4d75323427c8cdfa7104d264fc6bb36 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Mon, 11 Feb 2019 10:00:59 -0500 Subject: [PATCH] Force selectedIDs to be visible (re: #5880) --- modules/modes/select.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/modes/select.js b/modules/modes/select.js index 4289a0dc1..10703c4f6 100644 --- a/modules/modes/select.js +++ b/modules/modes/select.js @@ -239,6 +239,8 @@ export function modeSelect(context, selectedIDs) { mode.enter = function() { if (!checkSelectedIDs()) return; + context.features().forceVisible(selectedIDs); + var operations = _without(_values(Operations), Operations.operationDelete) .map(function(o) { return o(selectedIDs, context); }) .filter(function(o) { return o.available(); }); @@ -546,6 +548,7 @@ export function modeSelect(context, selectedIDs) { context.map().on('drawn.select', null); context.ui().sidebar.hide(); + context.features().forceVisible([]); };