@onesy/ui-react 1.0.135 → 1.0.136
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
|
@@ -233,7 +233,7 @@ const TableCell = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
233
233
|
method();
|
|
234
234
|
}
|
|
235
235
|
return () => {
|
|
236
|
-
parentOverflow.removeEventListener('scroll', method);
|
|
236
|
+
if (parentOverflow) parentOverflow.removeEventListener('scroll', method);
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
239
|
}
|
|
@@ -210,7 +210,7 @@ const TableCell = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
|
210
210
|
method();
|
|
211
211
|
}
|
|
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