Skip to content

Commit

Permalink
fix: correct drag source reconnection (#1375)
Browse files Browse the repository at this point in the history
  • Loading branch information
darthtrevino committed Jun 4, 2019
1 parent 5c8af9a commit 32a69c6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/react-dnd/src/SourceConnector.ts
Expand Up @@ -104,7 +104,11 @@ export default class SourceConnector implements Connector {
}

const dragSource = this.dragSource
if (!this.handlerId || !dragSource) {
if (!this.handlerId) {
return
}
if (!dragSource) {
this.lastConnectedDragSource = dragSource
return
}

Expand Down

0 comments on commit 32a69c6

Please sign in to comment.