mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-31 12:17:54 +01:00
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:
@@ -19,7 +19,7 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
size: {
|
size: {
|
||||||
type: String,
|
type: String,
|
||||||
default: () => appConfig.ui.input.default.size,
|
default: null,
|
||||||
validator (value: string) {
|
validator (value: string) {
|
||||||
return Object.keys(appConfig.ui.formGroup.size).includes(value)
|
return Object.keys(appConfig.ui.formGroup.size).includes(value)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user