labsense-ui-kit 1.2.95 → 1.2.96

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.
@@ -9797,16 +9797,21 @@ var Table = function Table(_ref9) {
9797
9797
  }
9798
9798
  };
9799
9799
  var handleScroll = function handleScroll() {
9800
- checkForScrollbar();
9800
+ return checkForScrollbar();
9801
9801
  };
9802
9802
  tableDataRef.current.addEventListener('scroll', handleScroll);
9803
- var intervalId = setInterval(checkForScrollbar, 1000);
9803
+ var observer = new MutationObserver(checkForScrollbar);
9804
+ observer.observe(tableDataRef.current, {
9805
+ childList: true,
9806
+ subtree: true
9807
+ });
9808
+ checkForScrollbar();
9804
9809
  return function () {
9805
9810
  var _tableDataRef$current;
9806
- clearInterval(intervalId);
9811
+ observer.disconnect();
9807
9812
  (_tableDataRef$current = tableDataRef.current) === null || _tableDataRef$current === void 0 ? void 0 : _tableDataRef$current.removeEventListener('scroll', handleScroll);
9808
9813
  };
9809
- }, []);
9814
+ }, [rowconfig, filter, loading]);
9810
9815
  return React.createElement(TableContainer, null, React.createElement(TableHeaderWithScrollbarAdjustment, {
9811
9816
  "$hasScrollbar": hasScrollbar,
9812
9817
  "$hbcolor": tableheaderconfig.headercolor,