@ceed/cds 1.27.1 → 1.27.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/index.cjs CHANGED
@@ -2992,6 +2992,10 @@ var HeadCell = (props) => {
2992
2992
  const theme = (0, import_joy32.useTheme)();
2993
2993
  const ref = headerRef;
2994
2994
  const colRef = tableColRef;
2995
+ const localRef = (0, import_react24.useRef)(null);
2996
+ (0, import_react24.useLayoutEffect)(() => {
2997
+ ref.current = localRef.current;
2998
+ }, [ref]);
2995
2999
  const [isHovered, setIsHovered] = (0, import_react24.useState)(false);
2996
3000
  const sortable = type === "actions" ? false : _sortable;
2997
3001
  const headId = (0, import_react24.useMemo)(
@@ -3074,7 +3078,7 @@ var HeadCell = (props) => {
3074
3078
  id: headId,
3075
3079
  "aria-label": headerName ?? field,
3076
3080
  "aria-sort": sort ? { asc: "ascending", desc: "descending" }[sort] : "none",
3077
- ref,
3081
+ ref: localRef,
3078
3082
  key: field,
3079
3083
  style,
3080
3084
  onClick: (0, import_react24.useCallback)(
package/dist/index.js CHANGED
@@ -2875,6 +2875,10 @@ var HeadCell = (props) => {
2875
2875
  const theme = useTheme();
2876
2876
  const ref = headerRef;
2877
2877
  const colRef = tableColRef;
2878
+ const localRef = useRef5(null);
2879
+ useLayoutEffect(() => {
2880
+ ref.current = localRef.current;
2881
+ }, [ref]);
2878
2882
  const [isHovered, setIsHovered] = useState8(false);
2879
2883
  const sortable = type === "actions" ? false : _sortable;
2880
2884
  const headId = useMemo8(
@@ -2957,7 +2961,7 @@ var HeadCell = (props) => {
2957
2961
  id: headId,
2958
2962
  "aria-label": headerName ?? field,
2959
2963
  "aria-sort": sort ? { asc: "ascending", desc: "descending" }[sort] : "none",
2960
- ref,
2964
+ ref: localRef,
2961
2965
  key: field,
2962
2966
  style,
2963
2967
  onClick: useCallback9(