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

fix controller test is dirty #10899

Conversation

pierluigigiancola
Copy link
Contributor

the test for the controller that should test that it's dirty was using isTouched and focus + blur instead of isDirty and changing the value

@codesandbox
Copy link

codesandbox bot commented Sep 7, 2023

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@bluebill1049
Copy link
Member

oh nice, could you duplicate the test for touch as well? thanks 👍

@pierluigigiancola
Copy link
Contributor Author

I'm sorry, but I don't understand your request.
The test for touch is already in controller.test and it seems okay to me.
Are you suggesting we create a test that asserts whether the input is touched after its value is changed?

@bluebill1049
Copy link
Member

I'm sorry, but I don't understand your request. The test for touch is already in controller.test and it seems okay to me. Are you suggesting we create a test that asserts whether the input is touched after its value is changed?

That's fine then 👍 thanks for the fix.

@bluebill1049 bluebill1049 merged commit 28a45bd into react-hook-form:master Sep 8, 2023
7 checks passed
@pierluigigiancola
Copy link
Contributor Author

Thanks for the amazing library 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants