You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consuming <Dialog.Portal> (and likely other components that uses <SlotClone> under the hood)) will cause the following error to be thrown when using Next.js 15:
Invalid prop ref supplied to React.Fragment
Expected behavior
Using <Dialog.Portal> should not be causing this error.
Reproducible example
TBD
Suggested solution
We should probably avoid passing ref to <SlotClone> component if it is a React Fragment:
Bug report
Current Behavior
Consuming
<Dialog.Portal>
(and likely other components that uses<SlotClone>
under the hood)) will cause the following error to be thrown when using Next.js 15:Expected behavior
Using
<Dialog.Portal>
should not be causing this error.Reproducible example
TBD
Suggested solution
We should probably avoid passing
ref
to<SlotClone>
component if it is a React Fragment:primitives/packages/react/slot/src/Slot.tsx
Line 35 in 74b182b
primitives/packages/react/slot/src/Slot.tsx
Line 35 in 74b182b
Additional context
n.a.
Your environment
@radix-ui/react-dialog
The text was updated successfully, but these errors were encountered: