From a110ae22b44297bb61df7a3eac104ff12fa096b5 Mon Sep 17 00:00:00 2001 From: John Leider Date: Mon, 8 Aug 2022 11:29:49 -0500 Subject: [PATCH] fix(VRadioGroup): add missing provideDefaults for v-radio --- .../vuetify/src/components/VRadioGroup/VRadioGroup.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/vuetify/src/components/VRadioGroup/VRadioGroup.tsx b/packages/vuetify/src/components/VRadioGroup/VRadioGroup.tsx index f8a5d22d3f4..32bd80b5dee 100644 --- a/packages/vuetify/src/components/VRadioGroup/VRadioGroup.tsx +++ b/packages/vuetify/src/components/VRadioGroup/VRadioGroup.tsx @@ -9,10 +9,11 @@ import { VSelectionControlGroup } from '@/components/VSelectionControlGroup' // Composables import { IconValue } from '@/composables/icons' +import { provideDefaults } from '@/composables/defaults' import { useProxiedModel } from '@/composables/proxiedModel' // Utilities -import { computed } from 'vue' +import { computed, toRef } from 'vue' import { defineComponent, filterInputAttrs, getUid, useRender } from '@/util' export const VRadioGroup = defineComponent({ @@ -52,6 +53,13 @@ export const VRadioGroup = defineComponent({ const id = computed(() => props.id || `radio-group-${uid}`) const model = useProxiedModel(props, 'modelValue') + provideDefaults({ + VRadio: { + color: toRef(props, 'color'), + density: toRef(props, 'density'), + }, + }) + useRender(() => { const [inputAttrs, controlAttrs] = filterInputAttrs(attrs) const [inputProps, _1] = filterInputProps(props)