Skip to content

Commit

Permalink
fix(datatable): row selection checkbox incorrectly fires row click ev…
Browse files Browse the repository at this point in the history
…ent in firefox (#1195)
  • Loading branch information
jeremysmartt authored and emoralesb05 committed Jul 17, 2018
1 parent 61686f2 commit 1db63f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/platform/core/data-table/data-table.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -711,8 +711,9 @@ export class TdDataTableComponent extends _TdDataTableMixinBase implements ICont
// ignoring linting rules here because attribute it actually null or not there
// can't check for undefined
const srcElement: any = event.srcElement || event.currentTarget;
let element: HTMLElement = event.target as HTMLElement;
/* tslint:disable-next-line */
if (srcElement.getAttribute('stopRowClick') === null) {
if (srcElement.getAttribute('stopRowClick') === null && element.tagName.toLowerCase() !== 'mat-pseudo-checkbox') {
this.onRowClick.emit({
row: row,
index: index,
Expand Down

0 comments on commit 1db63f6

Please sign in to comment.