@carbon/ibm-products 2.43.2-canary.113 → 2.43.2-canary.116

Sign up to get free protection for your applications and to get access to all the features.
@@ -44,7 +44,9 @@ var DatagridVirtualBody = function DatagridVirtualBody(datagridState) {
44
44
  /* istanbul ignore next */
45
45
  var handleVirtualGridResize = function handleVirtualGridResize() {
46
46
  var gridRefElement = gridRef === null || gridRef === void 0 ? void 0 : gridRef.current;
47
- if (gridRefElement) {
47
+ // isHidden checks for an edge case where if the table is hidden by something like a Tab that the width can't be calculated to 0
48
+ var isHidden = (gridRefElement === null || gridRefElement === void 0 ? void 0 : gridRefElement.offsetParent) === null;
49
+ if (gridRefElement && !isHidden) {
48
50
  var _gridRefElement$clien;
49
51
  gridRefElement.style.width = gridRefElement === null || gridRefElement === void 0 || (_gridRefElement$clien = gridRefElement.clientWidth) === null || _gridRefElement$clien === void 0 ? void 0 : _gridRefElement$clien.toString();
50
52
  }
@@ -52,7 +52,9 @@ var DatagridVirtualBody = function DatagridVirtualBody(datagridState) {
52
52
  /* istanbul ignore next */
53
53
  var handleVirtualGridResize = function handleVirtualGridResize() {
54
54
  var gridRefElement = gridRef === null || gridRef === void 0 ? void 0 : gridRef.current;
55
- if (gridRefElement) {
55
+ // isHidden checks for an edge case where if the table is hidden by something like a Tab that the width can't be calculated to 0
56
+ var isHidden = (gridRefElement === null || gridRefElement === void 0 ? void 0 : gridRefElement.offsetParent) === null;
57
+ if (gridRefElement && !isHidden) {
56
58
  var _gridRefElement$clien;
57
59
  gridRefElement.style.width = gridRefElement === null || gridRefElement === void 0 || (_gridRefElement$clien = gridRefElement.clientWidth) === null || _gridRefElement$clien === void 0 ? void 0 : _gridRefElement$clien.toString();
58
60
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/ibm-products",
3
3
  "description": "Carbon for IBM Products",
4
- "version": "2.43.2-canary.113+c246a3d4c",
4
+ "version": "2.43.2-canary.116+832233109",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -120,5 +120,5 @@
120
120
  "react": "^16.8.6 || ^17.0.1 || ^18.2.0",
121
121
  "react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
122
122
  },
123
- "gitHead": "c246a3d4cebb84b68cc879805e84466fd81dc1ab"
123
+ "gitHead": "832233109aca76f9e4a48ed7e7dbd0eac70c46b1"
124
124
  }
package/telemetry.yml CHANGED
@@ -530,6 +530,7 @@ collect:
530
530
  - isStatement
531
531
  - onConnectorOperatorChange
532
532
  - onStatementChange
533
+ - setShowDeletionPreviewForSubgroups
533
534
  # ConditionBuilderAdd
534
535
  - buttonLabel
535
536
  - enableSubGroup
@@ -552,6 +553,7 @@ collect:
552
553
  # ConditionConnector
553
554
  - operator
554
555
  # ConditionPreview
556
+ - colorIndex
555
557
  - previewType
556
558
  # CreateFullPage
557
559
  - breadcrumbsOverflowAriaLabel