Skip to content

Commit 5b6b8ef

Browse files
authored
Merge pull request #4968 from FLinares/no-selection_plus-minus
Prevent selection triggering on plus/minus click
2 parents 0ae4c95 + 2ebb9c1 commit 5b6b8ef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/features/selection/js/selection.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,11 @@
853853
//});
854854

855855
var selectCells = function(evt){
856+
// if you click on expandable icon doesn't trigger selection
857+
if (evt.target.className === "ui-grid-icon-minus-squared" || evt.target.className === "ui-grid-icon-plus-squared") {
858+
return;
859+
}
860+
856861
// if we get a click, then stop listening for touchend
857862
$elm.off('touchend', touchEnd);
858863

0 commit comments

Comments
 (0)