From d562e89c05567c2c58e86235312b9b469aba56a5 Mon Sep 17 00:00:00 2001 From: Nithin Kumar B Date: Wed, 27 Nov 2024 18:09:29 +0530 Subject: [PATCH] fix: scrollable dropdown (#1404) --- studio/src/components/ui/dropdown-menu.tsx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/studio/src/components/ui/dropdown-menu.tsx b/studio/src/components/ui/dropdown-menu.tsx index 4d717be0a3..0464d6daaf 100644 --- a/studio/src/components/ui/dropdown-menu.tsx +++ b/studio/src/components/ui/dropdown-menu.tsx @@ -1,10 +1,6 @@ import * as React from "react"; import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"; -import { - CheckIcon, - ChevronRightIcon, - DotFilledIcon, -} from "@radix-ui/react-icons"; +import { CheckIcon, ChevronRightIcon } from "@radix-ui/react-icons"; import { cn } from "@/lib/utils"; @@ -63,7 +59,7 @@ DropdownMenuSubContent.displayName = const DropdownMenuContent = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef ->(({ className, sideOffset = 4, ...props }, ref) => ( +>(({ className, sideOffset = 4, children, ...props }, ref) => ( + > + {children} + )); DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;