Skip to content
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

[Bug]: FieldArray 'replace' function sets field value as error message, causing false error display for inputs #308

Open
3 of 4 tasks
andriialbatov opened this issue Jul 18, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@andriialbatov
Copy link

Which packages are impacted?

  • remix-validated-form
  • @remix-validated-form/with-zod
  • @remix-validated-form/with-yup
  • zod-form-data

What version of these packages are you using?

"@remix-validated-form/with-zod": "2.0.6",
"remix-validated-form": "5.0.2",

Please provide a link to a minimal reproduction of the issue.

https://codesandbox.io/p/sandbox/billowing-lake-ff9gq9?file=%2Fapp%2Froutes%2Findex.tsx%3A84%2C10-84%2C20

Steps to Reproduce the Bug or Issue

In the demo

  1. Click on "Replace", which uses FieldArray 'replace' function and you will see errors in the input fields which was replaced

Expected behavior

No error messages on inputs

Screenshots or Videos

No response

Platform

macos latest firefox and chrome

Additional context

No response

@andriialbatov andriialbatov added the bug Something isn't working label Jul 18, 2023
@airjp73 airjp73 self-assigned this Aug 11, 2023
@airjp73
Copy link
Owner

airjp73 commented Aug 11, 2023

Yep, looks like the logic for replace is incorrect. Will look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants