@equinor/apollo-components 3.1.2-rowfix.17 → 3.1.2-rowfix.19
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/dist/index.js +1 -8
- package/dist/index.mjs +1 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1124,12 +1124,6 @@ function DataTable(props) {
|
|
|
1124
1124
|
tableContainerRef,
|
|
1125
1125
|
props.infiniteScroll
|
|
1126
1126
|
);
|
|
1127
|
-
const [hasRef, setHasRef] = (0, import_react7.useState)(false);
|
|
1128
|
-
(0, import_react7.useEffect)(() => {
|
|
1129
|
-
var _a2;
|
|
1130
|
-
console.log((_a2 = tableContainerRef.current) == null ? void 0 : _a2.toString());
|
|
1131
|
-
setHasRef(Boolean(tableContainerRef.current));
|
|
1132
|
-
}, [tableContainerRef.current === null]);
|
|
1133
1127
|
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(DataTableWrapper, {
|
|
1134
1128
|
height: props == null ? void 0 : props.height,
|
|
1135
1129
|
width: props == null ? void 0 : props.width,
|
|
@@ -1166,10 +1160,9 @@ function DataTable(props) {
|
|
|
1166
1160
|
sticky: props.stickyHeader,
|
|
1167
1161
|
table
|
|
1168
1162
|
}),
|
|
1169
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(VirtualTableBody, {
|
|
1163
|
+
tableContainerRef.current !== null && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(VirtualTableBody, {
|
|
1170
1164
|
containerRef: tableContainerRef,
|
|
1171
1165
|
tableCaption: props.tableCaption,
|
|
1172
|
-
hasRef,
|
|
1173
1166
|
table,
|
|
1174
1167
|
rowConfig,
|
|
1175
1168
|
cellConfig,
|
package/dist/index.mjs
CHANGED
|
@@ -1081,12 +1081,6 @@ function DataTable(props) {
|
|
|
1081
1081
|
tableContainerRef,
|
|
1082
1082
|
props.infiniteScroll
|
|
1083
1083
|
);
|
|
1084
|
-
const [hasRef, setHasRef] = useState5(false);
|
|
1085
|
-
useEffect3(() => {
|
|
1086
|
-
var _a2;
|
|
1087
|
-
console.log((_a2 = tableContainerRef.current) == null ? void 0 : _a2.toString());
|
|
1088
|
-
setHasRef(Boolean(tableContainerRef.current));
|
|
1089
|
-
}, [tableContainerRef.current === null]);
|
|
1090
1084
|
return /* @__PURE__ */ jsxs11(DataTableWrapper, {
|
|
1091
1085
|
height: props == null ? void 0 : props.height,
|
|
1092
1086
|
width: props == null ? void 0 : props.width,
|
|
@@ -1123,10 +1117,9 @@ function DataTable(props) {
|
|
|
1123
1117
|
sticky: props.stickyHeader,
|
|
1124
1118
|
table
|
|
1125
1119
|
}),
|
|
1126
|
-
/* @__PURE__ */ jsx19(VirtualTableBody, {
|
|
1120
|
+
tableContainerRef.current !== null && /* @__PURE__ */ jsx19(VirtualTableBody, {
|
|
1127
1121
|
containerRef: tableContainerRef,
|
|
1128
1122
|
tableCaption: props.tableCaption,
|
|
1129
|
-
hasRef,
|
|
1130
1123
|
table,
|
|
1131
1124
|
rowConfig,
|
|
1132
1125
|
cellConfig,
|