Skip to content

move and swap break form inputs #15

Closed
@carlhueffmeier

Description

@carlhueffmeier

Are you submitting a bug report or a feature request?

I believe I found a bug.

What is the current behavior?

These are the steps to reproduce:

  1. Create two input fields
  2. Swap them
  3. Type into the first input field
  4. The typed character will not appear in the first input field, but in the second

What is the expected behavior?

Swapping or moving fields should preserve behavior.

Sandbox Link

Edit 🏁 React Final Form - Field Arrays

To keep things as simple as possible, I reused the sandbox from the issue referenced below, simply upgrading the library version to 1.1.0.

What's your environment?

The problem occurs with final-form-arrays version 1.1.0. Downgrading the package to 1.0.6 solves the problem.

Other information

I believe the problem is caused by the latest change to the move and swap code in response to this previous issue.

This commit looks especially suspicious.

I would be happy to work on it, if you give me some pointers on where to start 💪

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions