Closed cenxky closed 1 year ago
Thx for your PR!
Please add an example here for reset
Hi @jsun969, here is the codesandbox example: https://codesandbox.io/s/falling-tree-mnwnhk?file=/src/FormExample.tsx
It seems I misunderstood your points, I'll update the example inside this repo.
sry for my late reply. Could you tell me why close this PR? 🥲
sry for my late reply. Could you tell me why close this PR? 🥲
Hey @jsun969, while doing the manual test after finishing the PR, I found there are still some problems between the new FormItem with react-form-hook, such as reset({})
not working as expected. I guess there might be something else that needs to be fixed, possibly related to initValue
. However, I was not able to conduct a thorough investigation due to lack of time. Hence, I decided to close the PR as it was not complete. I believe you have the ability to figure out and resolve the issues on your own.
reset
function not workingcontrol
optionalreset
example to the example projectFix #3