@onesy/ui-react 1.0.135 → 1.0.137
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 +4 -4
- package/esm/TableCell/TableCell.js +4 -4
- package/esm/index.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/TableCell/TableCell.js
CHANGED
|
@@ -228,12 +228,12 @@ const TableCell = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
228
228
|
parentOverflow.addEventListener('scroll', method, {
|
|
229
229
|
passive: false
|
|
230
230
|
});
|
|
231
|
-
|
|
232
|
-
// initial
|
|
233
|
-
method();
|
|
234
231
|
}
|
|
232
|
+
|
|
233
|
+
// initial
|
|
234
|
+
method();
|
|
235
235
|
return () => {
|
|
236
|
-
parentOverflow.removeEventListener('scroll', method);
|
|
236
|
+
if (parentOverflow) parentOverflow.removeEventListener('scroll', method);
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
239
|
}
|
|
@@ -205,12 +205,12 @@ const TableCell = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
|
205
205
|
parentOverflow.addEventListener('scroll', method, {
|
|
206
206
|
passive: false
|
|
207
207
|
});
|
|
208
|
-
|
|
209
|
-
// initial
|
|
210
|
-
method();
|
|
211
208
|
}
|
|
209
|
+
|
|
210
|
+
// initial
|
|
211
|
+
method();
|
|
212
212
|
return () => {
|
|
213
|
-
parentOverflow.removeEventListener('scroll', method);
|
|
213
|
+
if (parentOverflow) parentOverflow.removeEventListener('scroll', method);
|
|
214
214
|
};
|
|
215
215
|
}
|
|
216
216
|
}
|
package/esm/index.js
CHANGED
package/index.js
CHANGED