New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug Report] v-tab-item value is prefering index over value prop #10540
Comments
Does it actually say that string value for |
API
|
Same here, no ability to manage tabs with specific values, v-model only uses index. |
Also the documentation for |
Not sure if it is the solution but it is working. This is also not present in documentation. Keep
Now set
Data used here is as below: |
Please note, that |
I am still seeing this issue. The |
This is still an issue. Workaround doesn't work if you aren't using |
the value prop is not working with both v-tab and v-tab-item |
How can this be an issue after more than 2 years :( When dynamically handling whether tabs are rendered or not, index is not a reliable key :/ |
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
@joelpro2 If you replace |
That looks like a really bad workaround |
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, my bad. But if you add |
Still, you proposed the same workaround written in a different form. |
but using the I'd like to give a value to the tabs without changing the URL, how to do that ? |
Did this fix ever get released? Can't see it in the v2-stable branch |
it is in 2.7.1 at least (with the prop |
Environment
Vuetify Version: 2.2.11
Vue Version: 2.6.11
Browsers: Chrome 81.0.4044.9
OS: Windows 10
Steps to reproduce
use tab items with String value as explained in documentation https://vuetifyjs.com/en/components/tabs#tab-items
Expected Behavior
tab selected should match with the value prop
Actual Behavior
tabs use index instead even with value defined
Reproduction Link
https://codepen.io/joel_rodrigues/pen/poJJxEm?editors=1011
The text was updated successfully, but these errors were encountered: