@ceed/ads 1.28.1 → 1.28.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.browser.js +1 -1
- package/dist/index.browser.js.map +2 -2
- package/dist/index.cjs +5 -1
- package/dist/index.js +5 -1
- package/framer/index.js +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2990,6 +2990,10 @@ var HeadCell = (props) => {
|
|
|
2990
2990
|
const theme = (0, import_joy32.useTheme)();
|
|
2991
2991
|
const ref = headerRef;
|
|
2992
2992
|
const colRef = tableColRef;
|
|
2993
|
+
const localRef = (0, import_react24.useRef)(null);
|
|
2994
|
+
(0, import_react24.useLayoutEffect)(() => {
|
|
2995
|
+
ref.current = localRef.current;
|
|
2996
|
+
}, [ref]);
|
|
2993
2997
|
const [isHovered, setIsHovered] = (0, import_react24.useState)(false);
|
|
2994
2998
|
const sortable = type === "actions" ? false : _sortable;
|
|
2995
2999
|
const headId = (0, import_react24.useMemo)(
|
|
@@ -3072,7 +3076,7 @@ var HeadCell = (props) => {
|
|
|
3072
3076
|
id: headId,
|
|
3073
3077
|
"aria-label": headerName ?? field,
|
|
3074
3078
|
"aria-sort": sort ? { asc: "ascending", desc: "descending" }[sort] : "none",
|
|
3075
|
-
ref,
|
|
3079
|
+
ref: localRef,
|
|
3076
3080
|
key: field,
|
|
3077
3081
|
style,
|
|
3078
3082
|
onClick: (0, import_react24.useCallback)(
|
package/dist/index.js
CHANGED
|
@@ -2865,6 +2865,10 @@ var HeadCell = (props) => {
|
|
|
2865
2865
|
const theme = useTheme();
|
|
2866
2866
|
const ref = headerRef;
|
|
2867
2867
|
const colRef = tableColRef;
|
|
2868
|
+
const localRef = useRef5(null);
|
|
2869
|
+
useLayoutEffect(() => {
|
|
2870
|
+
ref.current = localRef.current;
|
|
2871
|
+
}, [ref]);
|
|
2868
2872
|
const [isHovered, setIsHovered] = useState8(false);
|
|
2869
2873
|
const sortable = type === "actions" ? false : _sortable;
|
|
2870
2874
|
const headId = useMemo8(
|
|
@@ -2947,7 +2951,7 @@ var HeadCell = (props) => {
|
|
|
2947
2951
|
id: headId,
|
|
2948
2952
|
"aria-label": headerName ?? field,
|
|
2949
2953
|
"aria-sort": sort ? { asc: "ascending", desc: "descending" }[sort] : "none",
|
|
2950
|
-
ref,
|
|
2954
|
+
ref: localRef,
|
|
2951
2955
|
key: field,
|
|
2952
2956
|
style,
|
|
2953
2957
|
onClick: useCallback9(
|