From 5b99822641be2540dd251d9157de27643659dd18 Mon Sep 17 00:00:00 2001 From: Rivka Ungar Date: Wed, 18 Dec 2024 11:44:52 +0200 Subject: [PATCH] fix(Dropdown): fix menuRenderer type --- packages/core/src/components/Dropdown/Dropdown.types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/components/Dropdown/Dropdown.types.ts b/packages/core/src/components/Dropdown/Dropdown.types.ts index 421b90baed..976ccac5b1 100644 --- a/packages/core/src/components/Dropdown/Dropdown.types.ts +++ b/packages/core/src/components/Dropdown/Dropdown.types.ts @@ -150,7 +150,7 @@ export interface DropdownComponentProps extends CustomMenuBaseProps, CustomOptio /** * custom menu render function */ - menuRenderer?: React.ReactElement; + menuRenderer?: React.ReactElement | ((props: CustomMenuProps) => React.ReactElement); /** * Default placement of the Dropdown menu in relation to its control. Use "auto" to flip the menu when there isn't enough space below the control. */