@onesy/ui-react 1.0.178 → 1.0.179
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 +1 -1
- package/esm/TableCell/TableCell.js +1 -1
- package/esm/index.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/TableCell/TableCell.js
CHANGED
|
@@ -208,7 +208,7 @@ const TableCell = props_ => {
|
|
|
208
208
|
}, [sortedBy_]);
|
|
209
209
|
const onStickyMove = () => {
|
|
210
210
|
const offsetNew = refs.root.current.offsetLeft;
|
|
211
|
-
setStickyActive(refs.offset.current
|
|
211
|
+
setStickyActive(offsetNew < refs.offset.current);
|
|
212
212
|
};
|
|
213
213
|
const onStickyInit = () => {
|
|
214
214
|
if (refs.sticky.current && refs.root.current) {
|
|
@@ -199,7 +199,7 @@ const TableCell = props_ => {
|
|
|
199
199
|
}, [sortedBy_]);
|
|
200
200
|
const onStickyMove = () => {
|
|
201
201
|
const offsetNew = refs.root.current.offsetLeft;
|
|
202
|
-
setStickyActive(refs.offset.current
|
|
202
|
+
setStickyActive(offsetNew < refs.offset.current);
|
|
203
203
|
};
|
|
204
204
|
const onStickyInit = () => {
|
|
205
205
|
if (refs.sticky.current && refs.root.current) {
|
package/esm/index.js
CHANGED
package/index.js
CHANGED