-
-
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] v-treeview : Expand icon displayed for empty children array #5357
Comments
Please provide runnable minimal reproduction |
Items with a children property that is an empty array can be expanded and get children with the |
Minimal reproduction on codepen : https://codepen.io/anon/pen/pxVVJE |
changed logic for rendering expand icon to only show when children actually has items, or load-children prop is used fixes #5357
changed logic for rendering expand icon to only show when children actually has items, or load-children prop is used fixes #5357
* fix(v-treeview): expand icon on empty children changed logic for rendering expand icon to only show when children actually has items, or load-children prop is used fixes #5357 * test: added tests * refactor: added hasChildren boolean
Versions and Environment
Vuetify: 1.3.0
Vue: 2.5.17
Browsers: Firefox
OS: Mac
Steps to reproduce
Create a tree with categories which children exist but is an empty array
Expected Behavior
The expand icon should not be generated
Actual Behavior
The expand icon is generated
Possible fix:
File: VTreeviewNode.ts L221
The text was updated successfully, but these errors were encountered: