Skip to content

v7.0.0 breaking change in Field #1048

Open
@Emilien-Greenomy

Description

@Emilien-Greenomy

Are you submitting a bug report or a feature request?

Bug Report

What is the current behavior?

When passing an input prop to the <Field name="name" component={Component} input={{onChange, value,...}} /> component in v7.0.0, the prop is ignored.

What is the expected behavior?

When passing an input prop to the <Field name="name" component={Component} input={{onChange, value,...}} /> component in v5.0.0, it is passed down to the component when rendering.

Sandbox Link

v6.5.9, input.value is "foo".
https://codesandbox.io/p/sandbox/t2gmyh

v7.0.0, input.value is an empty string.
https://codesandbox.io/p/sandbox/3ld64d

What's your environment?

react-final-form: 7.0.0 final-form: 5.0.0 Node: 20.14.0 Browser: Latest Firefox MacOS Apple M1

Other information

The example only shows the issue with the value, but the other properties of the input object are also ignored.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions