[Bug]: Regression bug generated by releases v7.15.3 (Form Reset)

Abierto
#107 6 comentarios 0 reacciones 1 asignado Ver en GitHub

@bluebill1049 ya está trabajando en esto.

Desde el 18/9/2021.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

Version Number

7.15.3

Codesandbox/Expo snack

https://codesandbox.io/s/eloquent-breeze-gywwy?file=/src/Form.tsx

Steps to reproduce

Scenario 1

  1. Enter any string in the first name field
  2. Click on the reset button
  3. Enter any string in the last name field
  4. Check the dev tool
    Actual: you should find both first & last names fields isDirty equals tor true

Scenario 2

  1. Enter any string in the first name field
  2. Enter any string in the last name field
  3. Click on the Save button (note that I reset the form with newly saved data after save)
  4. Change the value in the first name field
  5. Check the dev tool
    Actual: you should find both fields has isDirty as false
Expected behaviour

Scenario 1
Expected: you should find only the last name field isDirty equals tor true

Scenario 2
Expected: you should find the first name field isDirty equals tor true

What browsers are you seeing the problem on?

Chrome

Relevant log output

No response

Code of Conduct
  • I agree to follow this project's Code of Conduct
Lenguaje dominante
TypeScript
Estrellas
670
Forks
55
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de react-hook-form/devtools

Todos los issues de react-hook-form/devtools

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.