Skip to content

Commit f616137

Browse files
jahm89mportuga
authored andcommitted
fix: clear selection function
fix: issue when you clear the selected rows I think is not necessary know if the row is selectable or not, I'm having on issue related to it. Imagine you have a select dropdown with actions to perform to the rows selected, you select some rows but then you change the action to perform and this new action is not allowed to some of the rows previously selected, the function is not going to clear up those rows because they are selected and then they are not selectables.
1 parent 40d975e commit f616137

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/selection/src/js/selection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@
708708
clearSelectedRows: function (grid, evt) {
709709
var changedRows = [];
710710
service.getSelectedRows(grid).forEach(function (row) {
711-
if (row.isSelected && row.enableSelection !== false && grid.options.isRowSelectable(row) !== false) {
711+
if (row.isSelected && row.enableSelection !== false) {
712712
row.setSelected(false);
713713
service.decideRaiseSelectionEvent(grid, row, changedRows, evt);
714714
}

0 commit comments

Comments
 (0)