@banyan_cloud/roots 1.0.27 → 1.0.28

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/cjs/index.js CHANGED
@@ -36628,7 +36628,7 @@ var Table = function Table(props) {
36628
36628
  // for pagination docking using intersection observer
36629
36629
  React.useEffect(function () {
36630
36630
  var tableElem = ref.current;
36631
- if (tableElem) {
36631
+ if (tableElem && !loading) {
36632
36632
  var lastRow = tableElem.querySelector('[data-elem="table-body"] [data-elem="table-row"]:last-child');
36633
36633
  if (lastRow) {
36634
36634
  var lastRowHeight = parseInt(getComputedStyle(lastRow).height.slice(0, -2), 10);
@@ -36655,7 +36655,7 @@ var Table = function Table(props) {
36655
36655
  // for dynamically resizing table vertically acc to provided addons
36656
36656
  React.useEffect(function () {
36657
36657
  var tableElem = ref.current;
36658
- if (tableElem) {
36658
+ if (tableElem && !loading) {
36659
36659
  var totalAddons = [chipsData, filtersData].filter(Boolean).length;
36660
36660
  tableElem.style.height = "calc(100% - ".concat(totalAddons * 3, "rem)");
36661
36661
  }
@@ -36664,7 +36664,7 @@ var Table = function Table(props) {
36664
36664
  // setting body and header min-width to allow horizontal sticky column beyond viewport width
36665
36665
  React.useEffect(function () {
36666
36666
  var tableElem = ref.current;
36667
- if (tableElem) {
36667
+ if (tableElem && !loading) {
36668
36668
  var tableHeaderElem = tableElem.querySelector('[data-elem="table-header"]');
36669
36669
  var tableBodyElem = tableElem.querySelector('[data-elem="table-body"]');
36670
36670
  if (tableHeaderElem && tableBodyElem) {