Closed manishjatiwal closed 8 months ago
can you share the link for the page? and which codesandbox
yes that's the one you forked, i want to know the original
@bluebill1049 Why close this? I am uncertain about your request. The issue in question can be readily replicated using the provided code sandbox.
Version Number
7.49.3
Codesandbox/Expo snack
https://codesandbox.io/p/sandbox/rhf-bug-mfygck?file=%2Fsrc%2FApp.js
Steps to reproduce
Just open the sandbox, and click on the buttons. The first component uses
undefined
as the argument toonChange
, and hence is not working as expected. The second component used empty string as as the argument toonChange
, and works beautifully.Expected behaviour
After setting the value as
undefined
by calling theonChange(undefined)
, ComponentOne should get the update value i.e, undefined, instead of default value.What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
Code of Conduct