Skip to content
This repository has been archived by the owner on Jun 18, 2018. It is now read-only.

connectDragSource can specify custom dataTransfer data #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bspaulding
Copy link

@bspaulding bspaulding commented Jan 19, 2017

I've got a use case with a codebase in transition, where ideally I'd like to interop with the existing code. Are you opposed to something like this? Shouldn't change any behavior that I can see.

This let's a react-dnd user do:

connectDragSource(
  <div>MyDraggable</div>,
  { 
    dataTransferData: {
      some: 'extra-stuff-another-lib-will-use'
    }
  }
)

This will be set on the drag event.
Use case is for interop with drop targets managed
by other external drag/drop libs.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant