@onehat/ui 0.3.216 → 0.3.217

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