@onehat/ui 0.3.216 → 0.3.218
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -115,6 +115,7 @@ function GridComponent(props) {
|
|
|
115
115
|
canRowsReorder = false,
|
|
116
116
|
areRowsDragSource = false,
|
|
117
117
|
rowDragSourceType,
|
|
118
|
+
getRowDragSourceItem,
|
|
118
119
|
areRowsDropTarget = false,
|
|
119
120
|
dropTargetAccept,
|
|
120
121
|
onRowDrop,
|
|
@@ -457,7 +458,7 @@ function GridComponent(props) {
|
|
|
457
458
|
if (areRowsDragSource) {
|
|
458
459
|
rowDragProps.isDragSource = true;
|
|
459
460
|
rowDragProps.dragSourceType = rowDragSourceType;
|
|
460
|
-
rowDragProps.dragSourceItem = { id: item.id };
|
|
461
|
+
rowDragProps.dragSourceItem = getRowDragSourceItem ? getRowDragSourceItem(item) : { id: item.id };
|
|
461
462
|
}
|
|
462
463
|
if (areRowsDropTarget) {
|
|
463
464
|
rowDragProps.isDropTarget = true;
|