Skip to content

Commit

Permalink
plop
Browse files Browse the repository at this point in the history
  • Loading branch information
xav-car committed Feb 27, 2025
1 parent 5f44ae0 commit 03c1039
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion addon/components/pix-table.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</thead>
<tbody>
{{#each @data as |row|}}
<tr {{on "click" this.onClick}}>
<tr {{on "click" (fn this.onClick row)}}>
{{yield row "cell" to="columns"}}
</tr>
{{/each}}
Expand Down
4 changes: 2 additions & 2 deletions addon/components/pix-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ export default class PixTable extends Component {
}

@action
onClick(event) {
onClick(row, event) {
event.stopPropagation();
if (typeof this.args.onClick === 'function') {
this.args.onClick();
this.args.onClick(row);
}
}
}

0 comments on commit 03c1039

Please sign in to comment.