Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isDirty is not fired when async validation exists #11503

Closed
1 task done
sonyaos opened this issue Feb 13, 2024 · 2 comments
Closed
1 task done

isDirty is not fired when async validation exists #11503

sonyaos opened this issue Feb 13, 2024 · 2 comments
Labels
question Further information is requested status: under investigation aware of this issue and pending for investigation

Comments

@sonyaos
Copy link

sonyaos commented Feb 13, 2024

Version Number

7.50.1

Codesandbox/Expo snack

https://codesandbox.io/p/sandbox/summer-bush-bqsj4f-forked-vjrwfs?file=%2Fsrc%2Findex.js%3A29%2C15

Steps to reproduce

Check sandbox, please. Field "First name" has async validation. When you tap something in this field "isDirty" is not fired even if i have a correct subscription on it.

Expected behaviour

"isDirty" is called

What browsers are you seeing the problem on?

No response

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@bluebill1049
Copy link
Member

it's working for me in your CSB.

@bluebill1049 bluebill1049 added the question Further information is requested label Feb 13, 2024
@sonyaos
Copy link
Author

sonyaos commented Feb 14, 2024

check the record please. The field "Last name" works fine, but when i tap into the field "First name" (with async validation) there is no log in console "IS DIRTY: true"

record.mov

@bluebill1049 bluebill1049 added the status: under investigation aware of this issue and pending for investigation label Feb 14, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 19, 2024
rafaelcalhau pushed a commit to rafaelcalhau/react-hook-form that referenced this issue May 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested status: under investigation aware of this issue and pending for investigation
Projects
None yet
Development

No branches or pull requests

2 participants