Skip to content

Commit 39b35c2

Browse files
committed
[Ember]: Use native onclick
1 parent 6bcc6a5 commit 39b35c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frameworks/keyed/ember/app/components/my-table.gjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ export default class MyTable extends Component {
116116
{{#each this.data key="id" as |item|}}
117117
<tr class={{if (eq item.id this.selected) 'danger'}}>
118118
<td class="col-md-1">{{item.id}}</td>
119-
<td class="col-md-4"><a {{on 'click' (fn this.select item)}}>{{item.label}}</a></td>
120-
<td class="col-md-1"><a {{on 'click' (fn this.remove item)}}><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a></td>
119+
<td class="col-md-4"><a onclick={{fn this.select item}}>{{item.label}}</a></td>
120+
<td class="col-md-1"><a onclick={{fn this.remove item}}><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a></td>
121121
<td class="col-md-6"></td>
122122
</tr>
123123
{{/each}}

0 commit comments

Comments
 (0)