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