Skip to content

Commit

Permalink
fix(VTreeview): Load children when expanded (#20364)
Browse files Browse the repository at this point in the history
Co-authored-by: jsek <im68889094144@outlook.com>
  • Loading branch information
J-Sek and jsek authored Aug 29, 2024
1 parent dbc812c commit f95a405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vuetify/src/labs/VTreeview/VTreeviewChildren.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export const VTreeviewChildren = genericComponent<new <T extends InternalListIte
...itemProps,
...activatorProps,
value: itemProps?.value,
onToggleExpand: activatorProps.onClick as any,
onToggleExpand: [() => checkChildren(item), activatorProps.onClick] as any,
onClick: isClickOnOpen.value ? [() => checkChildren(item), activatorProps.onClick] as any : undefined,
}

Expand Down

0 comments on commit f95a405

Please sign in to comment.