What I'm trying to do is to attach a row click event to the datatable so I can go to the row detail on mouse click.
At the same time, I want to be able to use checkboxes to select table rows.
The problem is that when I try to unselect the checkbox of a row the onClick event is triggered.
Code exemple:
Code: Select all
...
<Datatable data-key="id" :selection.sync="selection" @row-click="onRowClick($event)">
<Column selection-mode="multiple" :header-style="{'width': '3em'}" />
</Datatable>
...