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

Remove field arrays impact other fields #230

Open
mpicciolli opened this issue Mar 21, 2023 · 0 comments
Open

Remove field arrays impact other fields #230

mpicciolli opened this issue Mar 21, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mpicciolli
Copy link

mpicciolli commented Mar 21, 2023

Describe the bug

I have a problem when I delete one or more fields of a field array. Sometimes the value of another field is not defined anymore.

Context: In my example below I created a list with a checkbox, input and a button to remove the field. You can remove, reorder (drag and drop) the fields.

Which package/s are you using?

felte (Svelte)

Environment

  • Browser: Chrome
  • Version: felte@1.2.7

To reproduce

  1. Add interests
  2. Delete interest
  3. The value of another field is null

Small reproduction example

https://svelte.dev/repl/2f000c6841e84c508223802b60ceb286?version=3.57.0

Screenshots

Capture d’écran, le 2023-03-21 à 10 48 41

I added 10 items and after that I deleted the "test 7" and "test 8". The value of "Test 9" is not defined.

Capture d’écran, le 2023-03-21 à 10 48 53

Additional context

No response

@mpicciolli mpicciolli added the bug Something isn't working label Mar 21, 2023
@mpicciolli mpicciolli changed the title Remove field arrays Remove field arrays impact other fields Mar 21, 2023
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