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

Đang mở
#107 6 bình luận 0 reaction 1 người được giao Xem trên GitHub

@bluebill1049 đang làm issue này rồi.

Từ ngày 18/9/2021.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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
Ngôn ngữ chính
TypeScript
Star
670
Fork
55
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của react-hook-form/devtools

Tất cả issue của react-hook-form/devtools

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.