Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue: FieldArray append with React Select not working correctly. #12005

Closed
1 task done
tomas1646 opened this issue Jun 11, 2024 · 1 comment
Closed
1 task done

issue: FieldArray append with React Select not working correctly. #12005

tomas1646 opened this issue Jun 11, 2024 · 1 comment

Comments

@tomas1646
Copy link

tomas1646 commented Jun 11, 2024

Version Number

7.51.5

Codesandbox/Expo snack

https://codesandbox.io/p/sandbox/great-shaw-pwcykw?file=%2Fpackage.json%3A10%2C31

Steps to reproduce

  1. Open Console
  2. Change ReactSelectInput to "Chocolate". dirtyFields will be:
{ ReactSelect: true }
  1. Click on "Add Field Array Item +".
  2. See error on dirtyFields:
{
    "ReactSelect": {
        "value": true,
        "label": true
    },
    "fieldArray": [
        {
            "name": true
        }
    ]
}

Expected behaviour

The expected dirtyFields output in step 4 should be:

{
    "ReactSelect": true,
    "fieldArray": [
        {
            "name": true
        }
    ]
}

What browsers are you seeing the problem on?

Chrome

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@JokinAbarzua
Copy link

Same issue here

@react-hook-form react-hook-form locked and limited conversation to collaborators Jun 15, 2024
@bluebill1049 bluebill1049 converted this issue into discussion #12016 Jun 15, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants