From 9fdf41740df0e8b825772ea412edb4a0a5e2f240 Mon Sep 17 00:00:00 2001 From: Ivan Date: Mon, 15 Jul 2019 10:43:11 +0300 Subject: [PATCH] Extend MenuItemProps from HTMLAttributes (#17629) --- components/menu/MenuItem.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/menu/MenuItem.tsx b/components/menu/MenuItem.tsx index 9ee06d1932..7fa821b1db 100644 --- a/components/menu/MenuItem.tsx +++ b/components/menu/MenuItem.tsx @@ -5,7 +5,11 @@ import { MenuContext, MenuContextProps } from './'; import Tooltip, { TooltipProps } from '../tooltip'; import { SiderContext, SiderContextProps } from '../layout/Sider'; -export interface MenuItemProps { +export interface MenuItemProps + extends Omit< + React.HTMLAttributes, + 'title' | 'onClick' | 'onMouseEnter' | 'onMouseLeave' + > { rootPrefixCls?: string; disabled?: boolean; level?: number;