Skip to content

Commit 1250b73

Browse files
committed
Add condition on selection
If you click on expandable icon doesn't trigger selection
1 parent 6032ac0 commit 1250b73

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
@@ -856,6 +856,11 @@
856856
//});
857857

858858
var selectCells = function(evt){
859+
// if you click on expandable icon doesn't trigger selection
860+
if (evt.target.className === "ui-grid-icon-minus-squared" || evt.target.className === "ui-grid-icon-plus-squared") {
861+
return;
862+
}
863+
859864
// if we get a click, then stop listening for touchend
860865
$elm.off('touchend', touchEnd);
861866

0 commit comments

Comments
 (0)