@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.
@@ -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
  });
@@ -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
@@ -1,4 +1,4 @@
1
- /** @license UiReact v1.0.140
1
+ /** @license UiReact v1.0.141
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license UiReact v1.0.140
1
+ /** @license UiReact v1.0.141
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onesy/ui-react",
3
- "version": "1.0.141",
3
+ "version": "1.0.142",
4
4
  "description": "UI for React",
5
5
  "repository": "https://github.com/onesy-me/onesy.git",
6
6
  "author": "Lazar Erić <lazareric1@proton.me>",