Open chrisbuttery opened 8 years ago
I'm experiencing a slight conflict when dropping files into react-dropzone, resulting in the following errors.
react-dropzone
Uncaught Invariant Violation: Expected targetIds to be an array Uncaught Invariant Violation: Cannot call hover while not dragging.
Example:
To get around this I have applied a conditional to handleTopDrop to check that dropTargetIds exists and has a length.
handleTopDrop
dropTargetIds
handleTopDrop(e) { const { dropTargetIds } = this; this.dropTargetIds = []; // Make sure we have dropTargetIds if (!dropTargetIds || !dropTargetIds.length) { return; } this.actions.hover(dropTargetIds, { clientOffset: getEventClientOffset(e) }); ...
This solves my issue and quite possibly could solve #25.
I'm experiencing a slight conflict when dropping files into
react-dropzone
, resulting in the following errors.Example:
To get around this I have applied a conditional to
handleTopDrop
to check thatdropTargetIds
exists and has a length.Example:
This solves my issue and quite possibly could solve #25.