react-final-form icon indicating copy to clipboard operation
react-final-form copied to clipboard

v7.0.0 breaking change in Field

Open Emilien-Greenomy opened this issue 6 months ago • 0 comments

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.

Emilien-Greenomy avatar Jun 27 '25 12:06 Emilien-Greenomy