Skip to content

Setting default values #153

Description

@vegetablesalad

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
                    }
                },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions