final-form / react-final-form-arrays

A component for rendering and editing arrays 🏁 React Final Form
MIT License
205 stars 70 forks source link

In react-beautiful-dnd example focused input don't swap #150

Open gadiGuesty opened 4 years ago

gadiGuesty commented 4 years ago

Are you submitting a bug report or a feature request?

Bug

What is the current behavior?

In react-beautiful-dnd example if few items created and one of inputs get focused and then dragged the it gets blurred and the swapped item get focused

  1. create two items(or more) in react-beautiful-dnd example
  2. choose one of the items and focus one of it's inputs
  3. swap(drag) it with other item

    What is the expected behavior?

    dragged item persist focus

    Sandbox Link

    https://codesandbox.io/s/678pj?file=/index.js

What's your environment?

    "final-form-arrays": "^3.0.2",
    "react-final-form": "^6.3.5",
    "react-final-form-arrays": "^3.1.2",
    "react-beautiful-dnd": "^13.0.0",
    "react": "^16.13.0",
    "react": "^16.13.0",

Other information