[new feature] Popup: support getContaienr (#611)

This commit is contained in:
neverland
2018-02-06 19:55:40 +08:00
committed by GitHub
parent 3556d5e7d1
commit 30e42284e9
26 changed files with 91 additions and 47 deletions
+1
View File
@@ -41,6 +41,7 @@ const manager = {
const { id, dom } = config;
const exist = context.stack.some(item => item.id === id);
/* istanbul ignore next */
if (!exist) {
const targetNode = dom && dom.parentNode && dom.parentNode.nodeType !== 11 ? dom.parentNode : document.body;
context.stack.push({ instance, id, config, targetNode });