@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onehat/ui",
3
- "version": "0.3.217",
3
+ "version": "0.3.218",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -115,7 +115,7 @@ function GridComponent(props) {
115
115
  canRowsReorder = false,
116
116
  areRowsDragSource = false,
117
117
  rowDragSourceType,
118
- rowDragSourceItem,
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 = rowDragSourceItem || { id: item.id };
461
+ rowDragProps.dragSourceItem = getRowDragSourceItem ? getRowDragSourceItem(item) : { id: item.id };
462
462
  }
463
463
  if (areRowsDropTarget) {
464
464
  rowDragProps.isDropTarget = true;