From 9bd66364d7a79b1fa9e4ee09f0672efec835ee49 Mon Sep 17 00:00:00 2001 From: Anastasia Lanz Date: Tue, 22 Oct 2024 10:26:03 -0500 Subject: [PATCH] fix: onSelect prop for OptionsMenu is optional (#1734) --- packages/react/src/components/OptionsMenu/OptionsMenu.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/components/OptionsMenu/OptionsMenu.tsx b/packages/react/src/components/OptionsMenu/OptionsMenu.tsx index 370dd5a6e..174e6eaa8 100644 --- a/packages/react/src/components/OptionsMenu/OptionsMenu.tsx +++ b/packages/react/src/components/OptionsMenu/OptionsMenu.tsx @@ -22,7 +22,7 @@ export interface OptionsMenuProps extends OptionsMenuAlignmentProps { menuRef?: React.Ref; trigger?: (props: OptionsMenuRenderTriggerProps) => React.ReactNode; onClose?: () => void; - onSelect: (e: React.MouseEvent) => void; + onSelect?: (e: React.MouseEvent) => void; closeOnSelect?: boolean; show?: boolean; children: React.ReactNode;