aefis-core-ui 2.3.0-rc100 → 2.3.0-rc101

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.
@@ -16566,7 +16566,6 @@ function DataTable(props) {
16566
16566
  if (tableHeadRef.current.offsetHeight !== tableHeadHeight) {
16567
16567
  setTableHeadHeight(tableHeadRef.current ? tableHeadRef.current.offsetHeight : 0);
16568
16568
  }
16569
- setContainerTop(containerRef.current.getBoundingClientRect().top);
16570
16569
  const newTableBodyHeight = dimensions.height - tableHeadHeight;
16571
16570
  if (newTableBodyHeight !== tableBodyHeight) {
16572
16571
  setTableBodyHeight(newTableBodyHeight);
@@ -16581,6 +16580,9 @@ function DataTable(props) {
16581
16580
  }
16582
16581
  }
16583
16582
  }, [props.isLoading, props.selectable, selectAllRows, instance]);
16583
+ useEffect(() => {
16584
+ if (containerRef.current) setContainerTop(containerRef.current.getBoundingClientRect().top);
16585
+ }, []);
16584
16586
  const handleScroll = scrolled => {
16585
16587
  if (headerElevated !== scrolled) {
16586
16588
  setHeaderElevated(scrolled);