Skip to content

Commit

Permalink
fix(): Remove default portal.
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanCQ committed Jan 31, 2024
1 parent 23f4325 commit c397e43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shadcn/ui/dropdown-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const DropdownMenuContent = React.forwardRef<
React.ElementRef<typeof DropdownMenuPrimitive.Content>,
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>
>(({ className, sideOffset = 4, ...props }, ref) => (
<DropdownMenuPrimitive.Portal>

<DropdownMenuPrimitive.Content
ref={ref}
sideOffset={sideOffset}
Expand All @@ -75,7 +75,7 @@ const DropdownMenuContent = React.forwardRef<
)}
{...props}
/>
</DropdownMenuPrimitive.Portal>

))
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName

Expand Down

0 comments on commit c397e43

Please sign in to comment.