final-form / final-form/react-final-form-arrays

React Beautiful DnD example doesn't behave as expected

Open
#112 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
210
Forks
69
PR merge metrics
No merged PRs in 30d

Description

### Are you submitting a **bug report** or a **feature request**?
Bug

### What is the current behavior?

1) Add 3 items to the array in this sandbox: https://codesandbox.io/s/8k0ykyr7z9
2) Swap the 1st and 3rd item, and the list ends up reading 3-2-1 (because of the use of `.swap()` rather than `.move()`)

### What is the expected behavior?
The list should read 3-1-2.

### Sandbox Link
https://codesandbox.io/s/8k0ykyr7z9

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.