fix(FormGroup): set size default to null

This prevents passing a `size` prop when not specified, especially when having a Checkbox, Radio, etc. underneath that don't support this prop.
This commit is contained in:
Benjamin Canac
2023-07-31 15:42:54 +02:00
parent a3aba1abad
commit c59595f2c6

View File

@@ -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)
}