diff --git a/src/helper/group.js b/src/helper/group.js index 4e23aa7a..a5379fa5 100644 --- a/src/helper/group.js +++ b/src/helper/group.js @@ -92,6 +92,8 @@ const ungroupItems = function (items, setSelectedItems, onUpdateImage) { if (!item.hasChildren()) { emptyGroups.push(item); } + } else if (setSelectedItems) { + item.selected = true; } } if (setSelectedItems) {