@onehat/ui 0.3.246 → 0.3.247

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.246",
3
+ "version": "0.3.247",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -488,6 +488,7 @@ function GridComponent(props) {
488
488
  rowDragProps.isDropTarget = true;
489
489
  rowDragProps.dropTargetAccept = dropTargetAccept;
490
490
  rowDragProps.onDrop = (droppedItem) => {
491
+ // NOTE: item is sometimes getting destroyed, but it still as the id, so you can still use it
491
492
  onRowDrop(item, droppedItem); // item is what it was dropped on; droppedItem is the dragSourceItem defined above
492
493
  };
493
494
  }
@@ -982,6 +983,9 @@ function GridComponent(props) {
982
983
  {...flatListProps}
983
984
  />
984
985
 
986
+ if (CURRENT_MODE === UI_MODE_WEB) {
987
+ grid = <ScrollView horizontal={false}>{grid}</ScrollView>; // fix scrolling bug on nested FlatLists
988
+ } else
985
989
  if (CURRENT_MODE === UI_MODE_REACT_NATIVE) {
986
990
  grid = <ScrollView flex={1} w="100%">{grid}</ScrollView>
987
991
  }