vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

[Bug Report] Tabs component is not reactive to removal of tabs or resetting active tab

Open JamesDeegan opened this issue 8 years ago • 5 comments

Versions and Environment

Vuetify: 1.1.1 Vue: 2.5.16 Browsers: Chrome 67.0.3396.99 OS: Windows 10

Steps to reproduce

First off, the active tab on page load should be the tab at index 5, yet the first tab is active. Next, try selecting the right most tab, labelled "seven" then click the button to remove tabs, notice the slider does not move.

Expected Behavior

Firstly the 5th tab should be active, labelled "Six" and secondly when removing tabs the slider should update, and also the activeTab should be reset to tab 1 as specified in the clickToggle method

Actual Behavior

Cannot set activeTab, and the slider does not update when removing tabs

Reproduction Link

https://codepen.io/anon/pen/JZVPqG?page=1&

JamesDeegan avatar Jul 03 '18 13:07 JamesDeegan

:v-model is not a thing

https://codepen.io/johnjleider/pen/JZVoJZ?editors=1111

johnleider avatar Jul 03 '18 13:07 johnleider

@johnleider your example is not working too. Slider does not move.

Have the same Issue. When removing a tab the tab item is not displaying correctly. Even when setting the activeTab explicit after removing a tab.

Reproduction Link: https://codepen.io/josuameier/pen/qyJyyq

ps: shall i open another bug/issue?

JosuaMeier avatar Aug 08 '18 07:08 JosuaMeier

@johnleider I have the same issue. Do you have an idea for a workaround in case a fix will take some more time?

haugero avatar Sep 04 '18 07:09 haugero

Not really, and the new v-item-group (which is what all components like v-tabs are going to) may have the same limitation. I'll tag this as v1.3 to keep it in mind.

johnleider avatar Sep 04 '18 12:09 johnleider

This has been fixed and is working for v1.3

tabs

johnleider avatar Oct 11 '18 21:10 johnleider