Skip to content

issue: After a submission fails, the default value for the radio button is replaced with a null value #790

@MateusPitura

Description

@MateusPitura

Version Number

3.10.0

Codesandbox/Expo snack

https://codesandbox.io/p/sandbox/jovial-violet-ln78wl

Steps to reproduce

  1. Enter a valid name and email
  2. Submit the form. It should display "String must contain at least 1 character(s)" in the gender input field (OK, that's what I expected)
  3. Erase the email input
  4. Submit again
  5. It show "Expected string, received null" in the gender input field (Bad, I didn't expect to receive that)

Also, the watch log changed to null

demo.webm

Expected behaviour

I expect that the values in my fields won't change after submitting.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions