Skip to content

Commit

Permalink
fix(selection.js): Raise rowSelectionChangedBatch after toggling sele…
Browse files Browse the repository at this point in the history
…ctAll flag.

Change order of toggle to match toggleRowSelection function

fix #5411
  • Loading branch information
Portugal, Marcelo authored and mportuga committed Apr 24, 2018
1 parent dff19a7 commit bff5bb2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/features/selection/js/selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@
service.decideRaiseSelectionEvent(grid, row, changedRows, evt);
}
});
service.decideRaiseSelectionBatchEvent(grid, changedRows, evt);
grid.selection.selectAll = true;
service.decideRaiseSelectionBatchEvent(grid, changedRows, evt);
}
},
/**
Expand All @@ -268,8 +268,8 @@
service.decideRaiseSelectionEvent(grid, row, changedRows, evt);
}
});
service.decideRaiseSelectionBatchEvent(grid, changedRows, evt);
grid.selection.selectAll = true;
service.decideRaiseSelectionBatchEvent(grid, changedRows, evt);
}
},
/**
Expand Down Expand Up @@ -576,9 +576,9 @@
service.decideRaiseSelectionEvent(grid, row, changedRows, evt);
}
});
service.decideRaiseSelectionBatchEvent(grid, changedRows, evt);
grid.selection.selectAll = false;
grid.selection.selectedCount = 0;
service.decideRaiseSelectionBatchEvent(grid, changedRows, evt);
},

/**
Expand Down

0 comments on commit bff5bb2

Please sign in to comment.