Skip to content

issue: regression while using next.5 to next.6 createFormControl #12665

@dohomi

Description

@dohomi

Version Number

7.55.0-next.6

Codesandbox/Expo snack

https://codesandbox.io/p/sandbox/brave-rain-vds3nw?file=%2Fsrc%2FApp.tsx%3A22%2C30

Steps to reproduce

As you can see the default value, or value of the form is not set to "Hello World".

In the next.5 version this was working.

Maybe I fundamentally using createFormControl wrong but I really love the idea to be able registering the control outside of the component scope and be able to pass the control, handleSubmit to all the form componens invoved.

Expected behaviour

This should work as in next.5:
https://codesandbox.io/p/devbox/lingering-flower-rj9w57?file=%2Fsrc%2FApp.tsx%3A21%2C5-21%2C11&workspaceId=ws_3ziw7s9h3eux7QPwHEsnAX

What browsers are you seeing the problem on?

Chrome

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    regressionRegression with code change

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions