Skip to content

Commit 3e8959a

Browse files
committed
fix: dropdown menu log warning, close #5127
1 parent 81ab68f commit 3e8959a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/menu/src/Menu.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const menuProps = {
6161
onOpenChange: Function as PropType<(keys: Key[]) => void>,
6262
onSelect: Function as PropType<SelectEventHandler>,
6363
onDeselect: Function as PropType<SelectEventHandler>,
64-
onClick: Function as PropType<MenuClickEventHandler>,
64+
onClick: [Function, Array] as PropType<MenuClickEventHandler>,
6565
onFocus: Function as PropType<FocusEventHandler>,
6666
onBlur: Function as PropType<FocusEventHandler>,
6767
'onUpdate:openKeys': Function as PropType<(keys: Key[]) => void>,

0 commit comments

Comments
 (0)