Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

issue: useWatch does not trigger validation when input registered with disabled: false #11717

Closed
1 task done
reinertisa opened this issue Mar 25, 2024 · 0 comments
Closed
1 task done

Comments

@reinertisa
Copy link

Version Number

7.51.1

Codesandbox/Expo snack

https://codesandbox.io/p/sandbox/usewatch-does-not-trigger-validation-r2f55d?file=%2Fsrc%2FApp.js%3A52%2C30

Steps to reproduce

  1. Go to 'https://codesandbox.io/p/sandbox/usewatch-does-not-trigger-validation-r2f55d?file=%2Fsrc%2FApp.js%3A52%2C30'
  2. Click on 'Submit'
  3. See validation errors
  4. Select 'Apple'
  5. You will see validation error because of input registered as disabled: false - FAILED
  6. Select 'Red'
  7. You will see validation error will gone because input registered without disabled and validation will trigger. - PASSED

Expected behaviour

When input registered with disabled is false, validation should trigger when I toggle input. It works with version 7.47.0 but it does not work with 7.51.1
Version 7.51.1 - FAILED
Screenshot 2024-03-25 at 12 27 56 PM
Version 7.47.0 PASSED
Screenshot 2024-03-25 at 12 27 24 PM

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 bluebill1049 added status: under investigation aware of this issue and pending for investigation and removed status: under investigation aware of this issue and pending for investigation labels Mar 26, 2024
@react-hook-form react-hook-form locked and limited conversation to collaborators Mar 30, 2024
@bluebill1049 bluebill1049 converted this issue into discussion #11737 Mar 30, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants