Skip to content

Commit

Permalink
fix(FormGroup): set size default to null
Browse files Browse the repository at this point in the history
This prevents passing a `size` prop when not specified, especially when having a Checkbox, Radio, etc. underneath that don't support this prop.
  • Loading branch information
benjamincanac committed Jul 31, 2023
1 parent a3aba1a commit c59595f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/forms/FormGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default defineComponent({
},
size: {
type: String,
default: () => appConfig.ui.input.default.size,
default: null,
validator (value: string) {
return Object.keys(appConfig.ui.formGroup.size).includes(value)
}
Expand Down

0 comments on commit c59595f

Please sign in to comment.