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 Portugal, Marcelo committed Apr 24, 2018
1 parent 615fe49 commit 6b8fb8e
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 6b8fb8e

Please sign in to comment.