Reputation: 132
I want to show a dialog if I click on a row in a vuetiy v-data-table. Furthermore I have one column in this table which has a button that I want to use as well.
If I click this button the click on the row and the button is registered. Both functions are executed. Is there a way to not execute the click on the row?
<v-data-table :headers="headers" :items="items" @click:row="openRecipe">
<template v-slot:item.actions="{ item }">
<v-icon
small
@click="edit(item)"
>mdi-pencil</v-icon>
</template>
</v-data-table>
Upvotes: 7
Views: 5813