From 0d0632b2f3dc66a6b7e9155100fd9d72506e732b Mon Sep 17 00:00:00 2001 From: Dmitry Gladkikh Date: Thu, 19 Apr 2018 15:33:12 +0300 Subject: [PATCH] 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 --- components/menu/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/components/menu/index.tsx b/components/menu/index.tsx index dc400969ee..7b8999de54 100644 --- a/components/menu/index.tsx +++ b/components/menu/index.tsx @@ -51,6 +51,7 @@ export interface MenuProps { inlineCollapsed?: boolean; subMenuCloseDelay?: number; subMenuOpenDelay?: number; + getPopupContainer?: (triggerNode: Element) => HTMLElement; } export interface MenuState {