Open
Description
Looks like this is occurring in the createNewHosts function call.
function createNewHosts(cmps) {
var components = cmps.map(function (componentNode) {
var newNode = document.createElement(componentNode.tagName);
// display none
var currentDisplay = newNode.style.display;
newNode.style.display = 'none';
var parentNode = componentNode.parentNode;
parentNode.insertBefore(newNode, componentNode); //Problem hits here
//Potential fix simple but could avoid this in future.
if ( !!componentNode.parentNode ) {
var parentNode = componentNode.parentNode;
parentNode.insertBefore(newNode, componentNode);
}
return { currentDisplay: currentDisplay, newNode: newNode };
});
Metadata
Metadata
Assignees
Labels
No labels