vue-smooth-dnd icon indicating copy to clipboard operation
vue-smooth-dnd copied to clipboard

Drag events are called repeatedly under multiple instances

Open xingzhoutantan opened this issue 5 years ago • 1 comments

When I open multiple pages in a project, the drag and drop events on each page are repeated.

xingzhoutantan avatar Jun 18 '19 09:06 xingzhoutantan

I see this too. A quick fix is to check if dropResult.addedIndex is null in your onDrop handler.

onDrop: (dropResult) => {
  if (dropResult.addedIndex == null)  return;
  // Do action
}

jack-michaud avatar Nov 21 '19 20:11 jack-michaud