Skip to content

Commit

Permalink
fix(selection.js): Allow group header selection.
Browse files Browse the repository at this point in the history
Ensure that group headers get selected when the user clicks the checkbox.

fix #6698
  • Loading branch information
Portugal, Marcelo authored and mportuga committed Apr 29, 2018
1 parent 454b63f commit 9718d8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/features/selection/js/selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,7 @@
uiGridSelectionService.toggleRowSelection(self, row, evt, self.options.multiSelect, self.options.noUnselect);
}
else if (row.groupHeader) {
uiGridSelectionService.toggleRowSelection(self, row, evt, self.options.multiSelect, self.options.noUnselect);
for (var i = 0; i < row.treeNode.children.length; i++) {
uiGridSelectionService.toggleRowSelection(self, row.treeNode.children[i].row, evt, self.options.multiSelect, self.options.noUnselect);
}
Expand Down

0 comments on commit 9718d8b

Please sign in to comment.