Skip to content

Commit

Permalink
fix: move prepend slot after tree view item checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwu9145 committed May 17, 2024
1 parent 9316bcd commit a8914f9
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 @@ -73,7 +73,6 @@ export const VTreeviewChildren = genericComponent<new <T extends InternalListIte
const slotsWithItem = {
prepend: slotProps => (
<>
{ slots.prepend?.({ ...slotProps, item }) }
{
props.selectable && (!children || (children && props.selectStrategy !== 'single-leaf' && props.selectStrategy !== 'leaf'))
? (
Expand All @@ -90,6 +89,7 @@ export const VTreeviewChildren = genericComponent<new <T extends InternalListIte
)
: undefined
}
{ slots.prepend?.({ ...slotProps, item }) }
</>
),
append: slots.append ? slotProps => slots.append?.({ ...slotProps, item }) : undefined,
Expand Down

0 comments on commit a8914f9

Please sign in to comment.