2

I'm using Vuetify tab for showing some forms, I want to add a button as the last element in tab which helps to create a new tab. Now I can prevent the event bubbling to tab by using @click.stop but whenever clicked outside the button(within the v-tab) it triggering tab change event, I tried @click.prevent and @change to prevent the default action but nothing seems working. Even I tried disabled property but it disabling the entire tab including the button.

<v-tab @click.stop.prevent="addNew">
  <v-btn class="d-flex" @click.prevent.stop="addNew">Add new</v-btn>
</v-tab>

CODEPEN

Pranav C Balan
  • 113,687
  • 23
  • 165
  • 188

0 Answers0