Skip to content

Commit

Permalink
disable row header click for selection
Browse files Browse the repository at this point in the history
  • Loading branch information
gsouf committed Mar 9, 2017
1 parent d255804 commit de8903b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugins/selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ZeroTable.createPlugin({

"rowClick" : function(e){

if( ! e.$row.hasClass(this.plugin.getOption("noSelectableClass"))){
if( e.$row.hasClass("zt-data-row") && ! e.$row.hasClass(this.plugin.getOption("noSelectableClass"))){
this.plugin.emulateClick(e.tableInstance, e.$row, e.event.shiftKey);
}

Expand Down
3 changes: 2 additions & 1 deletion tests/table.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
name: "firstname"
},
{
name: "lastname"
name: "lastname",
searcher: "string"
},
{
name: "age"
Expand Down

0 comments on commit de8903b

Please sign in to comment.