Skip to content

Commit

Permalink
Fixed #281
Browse files Browse the repository at this point in the history
  • Loading branch information
Çağatay Çivici committed Apr 29, 2016
1 parent 8a96af9 commit 9ef2e8b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/datatable/datatable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,12 @@ export class DataTable implements AfterViewChecked,AfterViewInit,OnInit,DoCheck
if(!this.selectionMode) {
return;
}

let targetNode = event.target.nodeName;
if(targetNode == 'INPUT' || targetNode == 'BUTTON' || targetNode == 'A'
|| (this.domHandler.hasClass(event.target, 'ui-c'))) {
return;
}

let selectionIndex = this.findIndexInSelection(rowData);
let selected = selectionIndex != -1;
Expand Down

0 comments on commit 9ef2e8b

Please sign in to comment.