V7 convert null/undefined to empty string when form is submitted? #4188
Unanswered
michael-land
asked this question in
General
Replies: 1 comment 4 replies
-
You have to remove that ref, or else we will read
or you have to hijack the |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to migrate to v7 and experiencing some issues.
Looks like v7 will coalesce null and undefined to empty string when form is submitted?
To reproduce, just click submit without input anything. Toggle version between v6 and v7 and see the output in the console.
https://codesandbox.io/s/youthful-gould-ocd4n?file=/src/App.tsx
Is this expected behavior in V7?
updated, I also noticed this weird behavior in v7.
Beta Was this translation helpful? Give feedback.
All reactions