Skip to content
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][3.7.6] v-treeview Default Selected Item Not Working with return-object #20844

Open
eguvenc opened this issue Jan 6, 2025 · 0 comments

Comments

@eguvenc
Copy link

eguvenc commented Jan 6, 2025

Environment

Vuetify Version: 3.7.6
Vue Version: 3.5.13
Browsers: Chrome 131.0.0.0
OS: Windows 10

Steps to reproduce

1- Create a v-treeview component with the following props:
v-model:selected bound to a default selected value.
return-object set to true.
item-value and item-title properties configured.
2- Populate the items prop with nested items.
3-Set a default value in v-model:selected that matches one of the items in the items array.
4-Render the component.

Expected Behavior

The v-treeview should render with the default selected item highlighted, matching the value in v-model:selected.

Actual Behavior

The v-treeview does not show the default selected item as selected. Instead, the v-model:selected value appears to be ignored or improperly processed when return-object is true.

Reproduction Link

https://play.vuetifyjs.com/#...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant