Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beginDrag:function(component) {
return {
effectAllowed: DropEffects.MOVE,
item: component.props
};
}
}
beginDrag(e) {
return {
effectAllowed: DropEffects.MOVE,
dragPreview: getEmptyImage(),
item: {
id: this.props.id,
children: this.props.children,
startLeft: this.props.left,
startTop: this.props.top,
startClientX: e.clientX,
startClientY: e.clientY
}
};
}
}
beginDrag:function(component) {
return {
effectAllowed: DropEffects.MOVE,
item: component.props
};
}
}