react-dnd / react-dnd

Drag and Drop for React

Home Page:http://react-dnd.github.io/react-dnd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple select, then drag and drop

Gerarca opened this issue · comments

Describe the bug
I have 2 list, and I just want drag and drop objects from one list to another, each item have checkbox for select elemet, so I select multiple items through the checkbox, I get this issue:

Error Objects are not valid as a React child (found: object with keys {name, checked, array}). If you meant to render a collection of children, use an array instead

so, immediately I update the function useDrag on Items.js component, but I'm getting the same issue, I have several weeks with this issue, and I don't know what's wrong? , I'm going to share the code with live reproduction:

Reproduction

Live Reproduction

Steps to reproduce the behavior:

  1. select one or several items of list left
  2. Try drag and drop on list right
  3. See error

Expected behavior
I just want Drag and Drop multiple items simultaneously

Screenshots
image list

Image issue

what's wrong? what I'm doing wrong?

Thanks!!!