Skip to content

Commit

Permalink
fix(VRadioGroup): add missing provideDefaults for v-radio
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Aug 8, 2022
1 parent 48015a9 commit a110ae2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/vuetify/src/components/VRadioGroup/VRadioGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a110ae2

Please # to comment.