Skip to content

Commit

Permalink
Merge pull request angular-ui#4968 from FLinares/no-selection_plus-minus
Browse files Browse the repository at this point in the history
Prevent selection triggering on plus/minus click
  • Loading branch information
dlgski authored Nov 16, 2016
2 parents 0ae4c95 + 2ebb9c1 commit 5b6b8ef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/features/selection/js/selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,11 @@
//});

var selectCells = function(evt){
// if you click on expandable icon doesn't trigger selection
if (evt.target.className === "ui-grid-icon-minus-squared" || evt.target.className === "ui-grid-icon-plus-squared") {
return;
}

// if we get a click, then stop listening for touchend
$elm.off('touchend', touchEnd);

Expand Down

0 comments on commit 5b6b8ef

Please sign in to comment.