From 9292973eecb8e42c172f236bd0dc803fa20a10d0 Mon Sep 17 00:00:00 2001 From: Cheng Liu Date: Wed, 5 Dec 2018 11:37:42 +0800 Subject: [PATCH] :sparkles: access popup container --- src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.js b/src/index.js index a868b87a..d064c61d 100644 --- a/src/index.js +++ b/src/index.js @@ -429,6 +429,7 @@ export default class Trigger extends React.Component { popupContainer.style.top = '0'; popupContainer.style.left = '0'; popupContainer.style.width = '100%'; + this.popupContainer = popupContainer; const mountNode = props.getPopupContainer ? props.getPopupContainer(findDOMNode(this)) : props.getDocument().body; mountNode.appendChild(popupContainer);