Skip to content

Commit 5423fbf

Browse files
committed
fix(VList): merge classes from itemProps
1 parent 3146397 commit 5423fbf

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

packages/vuetify/src/components/VList/VListChildren.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { VListSubheader } from './VListSubheader'
55
import { VDivider } from '@/components/VDivider'
66

77
// Utilities
8+
import { mergeProps } from 'vue'
89
import { createList } from './list'
910
import { genericComponent, propsFactory } from '@/util'
1011

@@ -73,11 +74,11 @@ export const VListChildren = genericComponent<new <T extends InternalListItem>(
7374
>
7475
{{
7576
activator: ({ props: activatorProps }) => {
76-
const listItemProps = {
77-
...itemProps,
78-
...activatorProps,
79-
value: props.returnObject ? item : itemProps.value,
80-
}
77+
const listItemProps = mergeProps(
78+
itemProps,
79+
activatorProps,
80+
{ value: props.returnObject ? item : itemProps.value }
81+
) as typeof itemProps
8182

8283
return slots.header
8384
? slots.header({ props: listItemProps })

0 commit comments

Comments
 (0)