material-react-table 0.5.0 → 0.5.1

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.
@@ -2350,8 +2350,10 @@ var MRT_TableContainer = function MRT_TableContainer() {
2350
2350
  if (typeof window !== 'undefined') {
2351
2351
  if (fullScreen) {
2352
2352
  document.body.style.overflow = 'hidden';
2353
- } else if (originalBodyOverflowStyle.current) {
2354
- document.body.style.overflow = originalBodyOverflowStyle.current;
2353
+ } else {
2354
+ var _originalBodyOverflow;
2355
+
2356
+ document.body.style.overflow = (_originalBodyOverflow = originalBodyOverflowStyle.current) != null ? _originalBodyOverflow : 'auto';
2355
2357
  }
2356
2358
  }
2357
2359
  }, [fullScreen]);