-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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.3.14] VList with selection doesn't work when children is an empty array #18172
Comments
The problem can be solved in VListChildren.tsx (
to add an additional check (besides null and undefined) for the array length This solves the problem, and when there are no children it's more logical to render a listitem and not a listgroup |
I will check if this conflict with my proposed change. If so, I will close this PR |
Closed the PR, doesn't work for an async scenario |
Environment
Vuetify Version: 3.3.14
Vue Version: 3.3.4
Browsers: Edge 117.0.2045.9
OS: Windows
Steps to reproduce
Using the prepend template the checkbox is added with the needed events. When the children property is set to an empty array, the select functionality doesn't work. When the children is set to null or undefined it does work
Expected Behavior
Allow the children to be set to empty array.
Actual Behavior
An empty array causes the children to behave differently
Reproduction Link
https://play.vuetifyjs.com/#...
The text was updated successfully, but these errors were encountered: