Not sure if I'm not setting them correctly but defaults don't really work for me:
It will set the value correctly, but when submitting it will throw out an error that field is empty. Unless I interact with it manually.
<AutoForm
formSchema={formSchema}
onSubmit={(d)=>onSubmit(d)}
fieldConfig={{
name: {
label:"Vārds",
inputProps: {
defaultValue:child?.name
}
},
Not sure if I'm not setting them correctly but defaults don't really work for me:
It will set the value correctly, but when submitting it will throw out an error that field is empty. Unless I interact with it manually.