fix: give ServerSideDocumentFallback callback
This commit is contained in:
parent
d0af00db63
commit
ad62a4ed86
@ -95,7 +95,8 @@ const DialogOverlay = React.forwardRef<HTMLDivElement, DialogOverlay>(
|
||||
|
||||
return (
|
||||
<ServerSideDocumentFallback>
|
||||
{ReactDOM.createPortal(
|
||||
{() =>
|
||||
ReactDOM.createPortal(
|
||||
<div
|
||||
{...otherPropsExtracted}
|
||||
id={ids.dialog}
|
||||
@ -118,7 +119,8 @@ const DialogOverlay = React.forwardRef<HTMLDivElement, DialogOverlay>(
|
||||
</div>
|
||||
</div>,
|
||||
document.body,
|
||||
)}
|
||||
)
|
||||
}
|
||||
</ServerSideDocumentFallback>
|
||||
);
|
||||
},
|
||||
|
@ -127,7 +127,8 @@ const DrawerOverlay = forwardRef<HTMLDivElement, DrawerOverlayProps>(
|
||||
|
||||
return (
|
||||
<ServerSideDocumentFallback>
|
||||
{createPortal(
|
||||
{() =>
|
||||
createPortal(
|
||||
<Comp
|
||||
{...restPropsExtracted}
|
||||
className={drawerOverlayVariant({
|
||||
@ -143,7 +144,8 @@ const DrawerOverlay = forwardRef<HTMLDivElement, DrawerOverlayProps>(
|
||||
ref={ref}
|
||||
/>,
|
||||
document.body,
|
||||
)}
|
||||
)
|
||||
}
|
||||
</ServerSideDocumentFallback>
|
||||
);
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user