Skip to content

Commit

Permalink
[Portal] Make container type consistent with ReactDOM.createPortal (#…
Browse files Browse the repository at this point in the history
…2329)

Co-authored-by: Chance Strickland <[email protected]>
  • Loading branch information
maltoze and chaance authored Sep 27, 2024
1 parent 207292a commit 4b3b969
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .yarn/versions/41451f5a.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
releases:
"@radix-ui/react-alert-dialog": patch
"@radix-ui/react-context-menu": patch
"@radix-ui/react-dialog": patch
"@radix-ui/react-dropdown-menu": patch
"@radix-ui/react-hover-card": patch
"@radix-ui/react-menu": patch
"@radix-ui/react-menubar": patch
"@radix-ui/react-popover": patch
"@radix-ui/react-portal": patch
"@radix-ui/react-select": patch
"@radix-ui/react-toast": patch
"@radix-ui/react-tooltip": patch

declined:
- primitives
2 changes: 1 addition & 1 deletion packages/react/portal/src/Portal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface PortalProps extends PrimitiveDivProps {
/**
* An optional container where the portaled content should be appended.
*/
container?: Element | null;
container?: Element | DocumentFragment | null;
}

const Portal = React.forwardRef<PortalElement, PortalProps>((props, forwardedRef) => {
Expand Down

0 comments on commit 4b3b969

Please sign in to comment.