react-better-html 1.1.143 → 1.1.144

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.mjs CHANGED
@@ -7527,8 +7527,10 @@ var TableComponent = forwardRef15(function Table({
7527
7527
  if (oldValue[index] === void 0) {
7528
7528
  const newValue = expandColumn.onlyOneExpanded ? [] : [...oldValue];
7529
7529
  newValue[index] = true;
7530
+ expandColumn.onExpand?.(item, index);
7530
7531
  return newValue;
7531
7532
  }
7533
+ expandColumn.onCollapse?.(item, index);
7532
7534
  return oldValue.map((isExpanded, internalIndex) => internalIndex === index ? !isExpanded : isExpanded);
7533
7535
  });
7534
7536
  } else onClickRow?.(item, index);