From 0e49930dabf923dda31306e361ab2323772171ee Mon Sep 17 00:00:00 2001 From: Kael Date: Tue, 31 May 2022 20:39:53 +1000 Subject: [PATCH] fix(VListItem): less strict prop types --- packages/vuetify/src/components/VList/VListItem.tsx | 4 ++-- packages/vuetify/src/composables/items.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/vuetify/src/components/VList/VListItem.tsx b/packages/vuetify/src/components/VList/VListItem.tsx index 361d214bdda..ecb96129da5 100644 --- a/packages/vuetify/src/components/VList/VListItem.tsx +++ b/packages/vuetify/src/components/VList/VListItem.tsx @@ -72,8 +72,8 @@ export const VListItem = genericComponent { nav: Boolean, prependAvatar: String, prependIcon: IconValue, - subtitle: String, - title: String, + subtitle: [String, Number, Boolean], + title: [String, Number, Boolean], value: null, link: Boolean, diff --git a/packages/vuetify/src/composables/items.ts b/packages/vuetify/src/composables/items.ts index 17aa0c496f3..b8fb891aad1 100644 --- a/packages/vuetify/src/composables/items.ts +++ b/packages/vuetify/src/composables/items.ts @@ -42,7 +42,7 @@ export const makeItemsProps = propsFactory({ default: 'value', }, itemChildren: { - type: [String, Array, Function] as PropType, + type: [Boolean, String, Array, Function] as PropType, default: 'children', }, itemProps: {