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

Moving subfields of array field mix their values #692

Open
pedro757 opened this issue Apr 27, 2024 · 1 comment
Open

Moving subfields of array field mix their values #692

pedro757 opened this issue Apr 27, 2024 · 1 comment
Labels

Comments

@pedro757
Copy link

pedro757 commented Apr 27, 2024

Describe the bug

When the input is still idle (I mean undefined) and you try to change its position it takes the value of other subfields. It messes things up.

Codesandbox

https://codesandbox.io/p/sandbox/focused-pond-s96spf?file=%2Fsrc%2FApp.js%3A169%2C8

Steps to reproduce

  1. Try to move the empty subfields dragging and dropping in other position
  2. Now try to move subfields with non-empty values

Expected behavior

I expect it to keep its value.

@crutchcorn
Copy link
Member

I think this is a bug with our moveValue method. I'll investigate in a bit

@crutchcorn crutchcorn added the bug label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants