Skip to content

Commit 4a8d578

Browse files
ENGCOM-3463: [UI] Fix selection of all items which are not visible in ui grid #19204
2 parents d4a2a6d + 70b3f59 commit 4a8d578

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/code/Magento/Ui/view/base/web/js/grid/massactions.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ define([
153153
var itemsType = data.excludeMode ? 'excluded' : 'selected',
154154
selections = {};
155155

156+
if (itemsType === 'excluded' && data.selected && data.selected.length) {
157+
itemsType = 'selected';
158+
data[itemsType] = _.difference(data.selected, data.excluded);
159+
}
160+
156161
selections[itemsType] = data[itemsType];
157162

158163
if (!selections[itemsType].length) {

0 commit comments

Comments
 (0)