From 6d62568bf4c7671adb408eafa43358fe52dd5c7d Mon Sep 17 00:00:00 2001 From: "Portugal, Marcelo" Date: Mon, 23 Apr 2018 22:20:54 -0400 Subject: [PATCH] fix(selection.js): Check if column is row header before disabling selection. Allows selection from the checkbox on row headers when enableFullRowSelection is on. fix #5239 --- src/features/selection/js/selection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/selection/js/selection.js b/src/features/selection/js/selection.js index dbb65d8845..9340aaa909 100644 --- a/src/features/selection/js/selection.js +++ b/src/features/selection/js/selection.js @@ -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);