fix: fix slot type error
This commit is contained in:
parent
ef2bdbf3e0
commit
f122310c37
@ -85,7 +85,10 @@ export const Slot = React.forwardRef<
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return React.cloneElement(children, {
|
return React.cloneElement(children, {
|
||||||
...mergeReactProps(safeSlotProps, children.props),
|
...mergeReactProps(
|
||||||
|
safeSlotProps,
|
||||||
|
children.props as Record<string, unknown>,
|
||||||
|
),
|
||||||
ref: combinedRef([
|
ref: combinedRef([
|
||||||
ref,
|
ref,
|
||||||
(children as unknown as { ref: React.Ref<HTMLElement> }).ref,
|
(children as unknown as { ref: React.Ref<HTMLElement> }).ref,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user