-
-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
Are you submitting a bug report or a feature request?
Bug report
What is the current behavior?
Removing a field using remove
mutator does not remove the correct field from the screen, if the fields are re-arranged using move
mutator before removing.
What is the expected behavior?
Correct field is removed from the screen
Sandbox Link
To reproduce the bug:
https://codesandbox.io/s/final-form-arrays-bug-x17sb
- Create two customers => (order: 1,2)
- Reorded customers by dragging => (order: 2,1)
- Remove Customer#2 by clicking red cross
- Customer#1 is removed from the screen instead of Customer#2
What's your environment?
The bug can be reproduced using final-form-arrays version from 1.2.0 to 3.0.2
Version 1.1.2 is working as expected
"final-form": "4.18.7",
"final-form-arrays": "3.0.2",
"react": "16.12.0",
"react-beautiful-dnd": "13.0.0",
"react-dom": "16.12.0",
"react-final-form": "6.3.5",
"react-final-form-arrays": "3.1.0",
Other information
Final Form state seems to be updated correctly (as seen in sandbox example). But somehow Field components doesn't get updated with those values.
AndyOGo, koi-annu and personaljs
Metadata
Metadata
Assignees
Labels
No labels