You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is happening to me even when passing in the v-model correctly. I've narrowed it down to line 46 in vuetify/lib/components/VTabs/Vtab.mjs , in the updateSlider function, which is:
The issue when clicking an element after the active tab is that prevEl comes back as undefined which fails the check if (!prevEl || !nextEl) return; on line 48 This explains why it is not animating because the animate function is fired after the if check on line 48
Looking into it more closely it looks like the querySelector in prevEl is what is failing when clicking a tab after the active tab. What I think is happening is the querySelector is firing before the class v-tab--selected is moved to the new element.
Workaround
Ok, working with a coworker and we've narrowed it down to being an issue with with the vue version. If using vue version 3.3.8 or earlier it works fine. If using 3.3.9 or later the issue exists. I'm assuming a change in 3.3.9 may have negatively effected the Vtab component and the updateSlider function
Environment
Vuetify Version: 3.4.7
Vue Version: 3.3.12
Browsers: Chrome 120.0.0.0
OS: Windows 10
Steps to reproduce
Expected Behavior
Active tab indicator line animates for moving between tabs in either direction
Actual Behavior
Active tab indicator line only animates for moving to a tab before the current active tab
Reproduction Link
https://play.vuetifyjs.com/#...
The text was updated successfully, but these errors were encountered: