Closed
Description
Version Number
7.51.4
Codesandbox/Expo snack
https://codesandbox.io/p/sandbox/register-forked-cmmlpn
Steps to reproduce
- Select first checkbox
- Select first checkbox in red rectangle
- Submit
- Check console
- Output:
{
"firstName": "",
"lastName": "",
"checkbox": [
"A",
"A"
],
"radio": "",
"message": ""
}
Expected behaviour
Checkboxes with the same registered name and value should "merge" and be in sync. If I select first checkbox, the first checkbox in red rectangle should be selected also.
before:
{
"firstName": "",
"lastName": "",
"checkbox": [
"A",
"A"
],
"radio": "",
"message": ""
}
after:
{
"firstName": "",
"lastName": "",
"checkbox": [
"A",
],
"radio": "",
"message": ""
}
What's happening now (clicked only first checkbox):
What I want (clicked only first checkbox but the second one is in sync):
I want to duplicate all my inputs so I can show 50% of the form (4 inputs) on the initial view and 100% of the form (8 inputs) in a modal with a scrollbar.
What browsers are you seeing the problem on?
Firefox, Chrome, Safari, Edge
Relevant log output
No response
Code of Conduct
- I agree to follow this project's Code of Conduct