Skip to content

Input props pollute field state #370

@kettanaito

Description

@kettanaito

Environment

  • react-advanaced-form: 1.6.7

What

Current behavior

Seems that all custom props passed to the input component end up in the field state in the form.

Expected behavior

Field state contains explicit set of fields. Custom input component props do not reside there, as field state shouldn't maintain them.

Why

Most likely, there is some object spreading somewhere, that enlists all custom props into the field state. I suggest to look into some createField options (beforeRegister?) first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions