1

Steps to reproduce Add tabs component to page Use property :touchless="true" on v-tab-item Swiping with finger still causes transition

Touchless prop should prevent user from swiping.

But I am still able to.

2 Answers2

5

You should use touchless in v-tabs-items vuetify tag.

<v-tabs-items touchless>
      <v-tab-item>
        //
      </v-tab-item>
      <v-tab-item>
        //
      </v-tab-item>
</v-tabs-items>
Ahmad_kh
  • 151
  • 1
  • 6
0

The touchless tag never worked for me, the solution in my case was to overwrite the :touch directive like this:

<v-tab-item :touch="false">
</v-tab-item>
  • There seems to be an issue when the `v-tab-item` is not nested in `v-tab-items` https://github.com/vuetifyjs/vuetify/discussions/15336?sort=top, here is an article on using v-tabs with disabled swiping https://ourcodeworld.com/articles/read/1558/how-to-disable-swiping-on-vuetify-tabs – korefn Aug 23 '23 at 09:37