This commit is contained in:
Mirco Wittrien 2019-11-22 10:40:34 +01:00
parent 2413479f97
commit 11dc07a0f6
2 changed files with 4 additions and 4 deletions

View File

@ -3518,9 +3518,9 @@ var BDFDB = {
}));
}
}
contentchildren = contentchildren.filter(n => n && BDFDB.ReactUtils.isValidElement(n));
headerchildren = headerchildren.filter(n => n && BDFDB.ReactUtils.isValidElement(n));
footerchildren = footerchildren.filter(n => n && BDFDB.ReactUtils.isValidElement(n));
contentchildren = contentchildren.filter(n => n && (typeof n == "string" || BDFDB.ReactUtils.isValidElement(n)));
headerchildren = headerchildren.filter(n => n && (typeof n == "string" || BDFDB.ReactUtils.isValidElement(n)));
footerchildren = footerchildren.filter(n => n && (typeof n == "string" || BDFDB.ReactUtils.isValidElement(n)));
if (contentchildren.length) {
if (typeof config.onClose != "function") config.onClose = _ => {};
if (typeof config.onOpen != "function") config.onOpen = _ => {};

File diff suppressed because one or more lines are too long