@onehat/ui 0.3.217 → 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,7 +115,7 @@ function GridComponent(props) {
|
|
|
115
115
|
canRowsReorder = false,
|
|
116
116
|
areRowsDragSource = false,
|
|
117
117
|
rowDragSourceType,
|
|
118
|
-
|
|
118
|
+
getRowDragSourceItem,
|
|
119
119
|
areRowsDropTarget = false,
|
|
120
120
|
dropTargetAccept,
|
|
121
121
|
onRowDrop,
|
|
@@ -458,7 +458,7 @@ function GridComponent(props) {
|
|
|
458
458
|
if (areRowsDragSource) {
|
|
459
459
|
rowDragProps.isDragSource = true;
|
|
460
460
|
rowDragProps.dragSourceType = rowDragSourceType;
|
|
461
|
-
rowDragProps.dragSourceItem =
|
|
461
|
+
rowDragProps.dragSourceItem = getRowDragSourceItem ? getRowDragSourceItem(item) : { id: item.id };
|
|
462
462
|
}
|
|
463
463
|
if (areRowsDropTarget) {
|
|
464
464
|
rowDragProps.isDropTarget = true;
|