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 angular-ui#5239
  • Loading branch information
Portugal, Marcelo authored and m4m4m4 committed Apr 24, 2018
1 parent 12a96b9 commit 6d62568
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 6d62568

Please sign in to comment.