Bug
When using a controlled text field inside a draggable component, editing the field works as expected, with the edits to maintain in state with the onChange handler.
When using a controlled text field inside a draggable component, editing the field works causes focus to be lost - specifically when the state is being controlled.
React are you using?Latest
react-beautiful-dnd are you running?Latest
Chrome
Here you go: https://codesandbox.io/s/kon8qyy6qo
Your issue is that you are using the value of the input as part of the key for the draggable. This is causing the component to mount and remount which is the root of your issue.
@alexreardon thanks it worked
Most helpful comment
Here you go: https://codesandbox.io/s/kon8qyy6qo
Your issue is that you are using the
valueof the input as part of the key for the draggable. This is causing the component to mount and remount which is the root of your issue.