Skip to content

Commit

Permalink
fix(selection.js): Check if column is row header before disabling sel…
Browse files Browse the repository at this point in the history
…ection.

Allows selection from the checkbox on row headers when enableFullRowSelection is on.

fix #5239
  • Loading branch information
Portugal, Marcelo authored and mportuga committed Apr 24, 2018
1 parent 615fe49 commit dff19a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/selection/js/selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@
};

function registerRowSelectionEvents() {
if ($scope.grid.options.enableRowSelection && $scope.grid.options.enableFullRowSelection && !$elm.hasClass('ui-grid-row-header-cell')) {
if ($scope.grid.options.enableRowSelection && $scope.grid.options.enableFullRowSelection && $scope.col.colDef.name !== 'selectionRowHeaderCol') {
$elm.addClass('ui-grid-disable-selection');
$elm.on('touchstart', touchStart);
$elm.on('touchend', touchEnd);
Expand Down

0 comments on commit dff19a7

Please sign in to comment.