Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
💩 Apply focus capture workaround to dropdown menu trigger (#1109)
Luke Vellaacbb6e552f9b
diff --git a/packages/ui/src/dropdown-menu.tsx b/packages/ui/src/dropdown-menu.tsxindex 4d0095ffa..ade17a406 100644--- a/packages/ui/src/dropdown-menu.tsx+++ b/packages/ui/src/dropdown-menu.tsx@@ -9,7 +9,18 @@ import { Icon } from "./icon";const DropdownMenu = DropdownMenuPrimitive.Root;-const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;+const DropdownMenuTrigger = React.forwardRef<+ React.ElementRef<typeof DropdownMenuPrimitive.Trigger>,+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger>+>(({ ...props }, ref) => (+ <DropdownMenuPrimitive.Trigger+ ref={ref}+ {...props}+ onFocusCapture={(e) => {+ e.stopPropagation();+ }}+ />+));const DropdownMenuGroup = DropdownMenuPrimitive.Group;