@onesy/ui-react 1.0.141 → 1.0.142
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/TableCell/TableCell.js +6 -0
- package/TableHead/TableHead.js +6 -0
- package/esm/TableCell/TableCell.js +6 -0
- package/esm/TableHead/TableHead.js +6 -0
- package/esm/index.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/TableCell/TableCell.js
CHANGED
|
@@ -228,6 +228,12 @@ const TableCell = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
228
228
|
|
|
229
229
|
// initial
|
|
230
230
|
method();
|
|
231
|
+
setTimeout(() => {
|
|
232
|
+
root.style.position = 'unset';
|
|
233
|
+
offsetOriginal = root.offsetLeft;
|
|
234
|
+
root.style.position = 'sticky';
|
|
235
|
+
method();
|
|
236
|
+
}, 400);
|
|
231
237
|
if (parentOverflow) parentOverflow.addEventListener('scroll', method, {
|
|
232
238
|
passive: false
|
|
233
239
|
});
|
package/TableHead/TableHead.js
CHANGED
|
@@ -104,6 +104,12 @@ const TableHead = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
104
104
|
|
|
105
105
|
// initial
|
|
106
106
|
method();
|
|
107
|
+
setTimeout(() => {
|
|
108
|
+
root.style.position = 'unset';
|
|
109
|
+
offsetOriginal = root.offsetTop;
|
|
110
|
+
root.style.position = 'sticky';
|
|
111
|
+
method();
|
|
112
|
+
}, 400);
|
|
107
113
|
if (parentOverflow) parentOverflow.addEventListener('scroll', method, {
|
|
108
114
|
passive: false
|
|
109
115
|
});
|
|
@@ -205,6 +205,12 @@ const TableCell = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
|
205
205
|
|
|
206
206
|
// initial
|
|
207
207
|
method();
|
|
208
|
+
setTimeout(() => {
|
|
209
|
+
root.style.position = 'unset';
|
|
210
|
+
offsetOriginal = root.offsetLeft;
|
|
211
|
+
root.style.position = 'sticky';
|
|
212
|
+
method();
|
|
213
|
+
}, 400);
|
|
208
214
|
if (parentOverflow) parentOverflow.addEventListener('scroll', method, {
|
|
209
215
|
passive: false
|
|
210
216
|
});
|
|
@@ -85,6 +85,12 @@ const TableHead = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
|
85
85
|
|
|
86
86
|
// initial
|
|
87
87
|
method();
|
|
88
|
+
setTimeout(() => {
|
|
89
|
+
root.style.position = 'unset';
|
|
90
|
+
offsetOriginal = root.offsetTop;
|
|
91
|
+
root.style.position = 'sticky';
|
|
92
|
+
method();
|
|
93
|
+
}, 400);
|
|
88
94
|
if (parentOverflow) parentOverflow.addEventListener('scroll', method, {
|
|
89
95
|
passive: false
|
|
90
96
|
});
|
package/esm/index.js
CHANGED
package/index.js
CHANGED