issue: input doesn't pick up value after remount #10747
Replies: 6 comments 3 replies
-
Note that the data the form submits (after following the above steps) depends on the used version of react-hook-form:
In both cases, formField2 doesn't display any value, though. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hi @bluebill1049, Thank you for the fast reply and all your work to maintain this project!
As you can see in the provided code sandbox, the reported issue occurs without strict mode. |
Beta Was this translation helpful? Give feedback.
-
it is |
Beta Was this translation helpful? Give feedback.
-
But why does the form submit the default value then? See my previous comment In my view, it's clearly a bug that after re-mounting |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Version Number
7.45.2
Codesandbox/Expo snack
https://codesandbox.io/s/frosty-bose-wn2fqh
Steps to reproduce
Expected behaviour
formField2 displays "2".
What browsers are you seeing the problem on?
No response
Relevant log output
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions