Browse Source

Properly type onMouseEnter and onMouseLeave events

pull/14307/head
Gabe Medrash 6 years ago
committed by 偏右
parent
commit
dfc9b24c98
  1. 4
      components/menu/MenuItem.tsx

4
components/menu/MenuItem.tsx

@ -13,8 +13,8 @@ interface MenuItemProps {
className?: string;
style?: React.CSSProperties;
onClick?: (param: ClickParam) => void;
onMouseEnter?: (event: string, e: MouseEvent) => void;
onMouseLeave?: (event: string, e: MouseEvent) => void;
onMouseEnter?: (e: { key: string; domEvent: MouseEvent }) => void;
onMouseLeave?: (e: { key: string; domEvent: MouseEvent }) => void;
}
class MenuItem extends React.Component<MenuItemProps, any> {

Loading…
Cancel
Save