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] disabled property on v-treeview disables nodes expansion #20832

Open
abrovko opened this issue Jan 3, 2025 · 0 comments
Open

Comments

@abrovko
Copy link

abrovko commented Jan 3, 2025

Environment

Vuetify Version: 3.7.6
Last working version: 2.7.2
Vue Version: 3.5.13
Browsers: Chrome 131.0.0.0
OS: Windows 10

Steps to reproduce

Add :disabled="true" property to the tree view (<v-treeview :disabled="true")

Expected Behavior

Disabled property should disable node selection (per documentation https://vuetifyjs.com/en/api/v-treeview/#props-disabled "Disables selection for all nodes.").

Actual Behavior

In addition to disabling node selection it also disables node expansion

Reproduction Link

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

Other comments

I think in vuetify 2 disabling treeview only disabled selection but not expansion. In our use case what we are looking for is essentially a read-only mode for the tree view. In some cases users should be able to navigate the tree and view what's selected but should not be able to change selections. If there is a different property for that or a workaround please let me know

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