Browse Source

Add getPopupContainer method decl to MenuProps interface (#10158)

* add getPopupContainer to MenuProps

see https://github.com/ant-design/ant-design/issues/10145

* Update getPopupContainer signature of MenuProps

* getPopupContainer prop is optional
pull/10166/head
Dmitry Gladkikh 7 years ago
committed by Wei Zhu
parent
commit
0d0632b2f3
  1. 1
      components/menu/index.tsx

1
components/menu/index.tsx

@ -51,6 +51,7 @@ export interface MenuProps {
inlineCollapsed?: boolean; inlineCollapsed?: boolean;
subMenuCloseDelay?: number; subMenuCloseDelay?: number;
subMenuOpenDelay?: number; subMenuOpenDelay?: number;
getPopupContainer?: (triggerNode: Element) => HTMLElement;
} }
export interface MenuState { export interface MenuState {

Loading…
Cancel
Save