Skip to content

Commit

Permalink
fix(VRadio): class/style duplication
Browse files Browse the repository at this point in the history
closes #20012
fixes #20005
  • Loading branch information
johnleider committed Jul 9, 2024
1 parent 09c294b commit 81bc1f4
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions packages/vuetify/src/components/VRadio/VRadio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,22 @@ export const VRadio = genericComponent<VSelectionControlSlots>()({
props: makeVRadioProps(),

setup (props, { slots }) {
useRender(() => (
<VSelectionControl
{ ...props }
class={[
'v-radio',
props.class,
]}
style={ props.style }
type="radio"
v-slots={ slots }
/>
))
useRender(() => {
const controlProps = VSelectionControl.filterProps(props)

return (
<VSelectionControl
{ ...controlProps }
class={[
'v-radio',
props.class,
]}
style={ props.style }
type="radio"
v-slots={ slots }
/>
)
})

return {}
},
Expand Down

0 comments on commit 81bc1f4

Please sign in to comment.