pace-table-lib 1.0.15 → 1.0.17

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.
@@ -8380,6 +8380,15 @@
8380
8380
  return { cellHeight: Number(dynHeight), cellWidth: Number(dWidth), fixedColWidth: Number(fWidth) };
8381
8381
  }, [isFitTableOn, columnCount, rowCount, fixedColCount, tableWidth, tableHeight]);
8382
8382
  const gridRef = React.useRef(null);
8383
+ React.useEffect(() => {
8384
+ const t = setTimeout(() => {
8385
+ if (gridRef.current) {
8386
+ gridRef.current.recomputeGridSize();
8387
+ gridRef.current.forceUpdateGrids();
8388
+ }
8389
+ }, 0);
8390
+ return () => clearTimeout(t);
8391
+ }, [tableWidth, tableHeight, tableData, isFitTableOn]);
8383
8392
  const conditionalFormatsByType = React.useMemo(() => {
8384
8393
  const map = { value: [], "row header": [], "column header": [] };
8385
8394
  conditionalFormatArr?.forEach((format) => {
@@ -8703,7 +8712,7 @@
8703
8712
  const finalStyleForRow = getFinalStyleObj(STYLE_FOR.ROW, baseStyleObj, rowLabel, level, groupIndex);
8704
8713
  headers.push({
8705
8714
  ...finalStyleForRow,
8706
- label: rowLabel,
8715
+ label: getCleanString(rowLabel),
8707
8716
  top: offsetTop,
8708
8717
  left: level * fixedColWidth,
8709
8718
  width: fixedColWidth,