Skip to content

Commit

Permalink
fix(selection.js): enableFullRowSelection allows enableRowHeaderSelec…
Browse files Browse the repository at this point in the history
…tion.

Ensured that the enableFullRowSelection no longer adds the disable selection class to row header
cells.

fix #5474
  • Loading branch information
Portugal, Marcelo authored and mportuga committed Mar 21, 2018
1 parent 89c43ef commit f77a5b3
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 @@ -942,7 +942,7 @@
};

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

0 comments on commit f77a5b3

Please sign in to comment.