Feature description
It is currently not possible when using base-ui to pass the keepMounted prop to the <DialogPortal>.
My current solution and suggestion is to add the prop to the DialogContent component:
function DialogContent({
className,
children,
showCloseButton = true,
+ keepMounted = false,
...props
}: DialogPrimitive.Popup.Props & {
showCloseButton?: boolean;
+ keepMounted?: boolean;
}) {
return (
- <DialogPortal keepMounted={keepMounted}>
+ <DialogPortal keepMounted={keepMounted}>
<DialogOverlay />
<DialogPrimitive.Popup
// ...
Link to the relevant Base UI docs for context:
https://base-ui.com/react/components/dialog#portal
Affected component/components
Dialog
Additional Context
Additional details here...
Before submitting
Feature description
It is currently not possible when using base-ui to pass the
keepMountedprop to the<DialogPortal>.My current solution and suggestion is to add the prop to the
DialogContentcomponent:Link to the relevant Base UI docs for context:
https://base-ui.com/react/components/dialog#portal
Affected component/components
Dialog
Additional Context
Additional details here...
Before submitting