@economic/taco 2.67.1-footer-fix.1 → 2.67.1-footer-fix.2
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/taco.cjs +1 -10
- package/dist/taco.cjs.map +1 -1
- package/dist/taco.js +1 -10
- package/dist/taco.js.map +1 -1
- package/package.json +2 -2
package/dist/taco.cjs
CHANGED
@@ -35564,7 +35564,7 @@ function configureReactTableOptions(options, props, localization) {
|
|
35564
35564
|
if (originalRow) {
|
35565
35565
|
return String(originalRow[props.rowIdentityAccessor]);
|
35566
35566
|
}
|
35567
|
-
return
|
35567
|
+
return String(index2);
|
35568
35568
|
};
|
35569
35569
|
}
|
35570
35570
|
const tableOptions = {
|
@@ -37880,8 +37880,6 @@ function useTableRenderer(renderers, table, tableRef, length, defaultRowActiveIn
|
|
37880
37880
|
});
|
37881
37881
|
const expandedState = table.getState().expanded;
|
37882
37882
|
const previousExpandedStateRef = React.useRef(false);
|
37883
|
-
const sortingState = table.getState().sorting;
|
37884
|
-
const previousSortingStateRef = React.useRef(JSON.stringify(sortingState));
|
37885
37883
|
React.useEffect(() => {
|
37886
37884
|
const isEmpty = JSON.stringify(expandedState) === "{}";
|
37887
37885
|
if (expandedState === true || isEmpty && previousExpandedStateRef.current === true) {
|
@@ -37889,13 +37887,6 @@ function useTableRenderer(renderers, table, tableRef, length, defaultRowActiveIn
|
|
37889
37887
|
virtualiser.measure();
|
37890
37888
|
}
|
37891
37889
|
}, [expandedState]);
|
37892
|
-
React.useEffect(() => {
|
37893
|
-
const currentSortingString = JSON.stringify(sortingState);
|
37894
|
-
if (currentSortingString !== previousSortingStateRef.current) {
|
37895
|
-
previousSortingStateRef.current = currentSortingString;
|
37896
|
-
virtualiser.measure();
|
37897
|
-
}
|
37898
|
-
}, [sortingState]);
|
37899
37890
|
const totalSize = virtualiser.getTotalSize();
|
37900
37891
|
const virtualItems = virtualiser.getVirtualItems();
|
37901
37892
|
const scrollToIndex = React.useCallback(
|