From 8b94a5c26af984217ab5f517cbfd531c5f15d05a Mon Sep 17 00:00:00 2001 From: "DeFrisco, Jim" Date: Tue, 22 May 2018 12:16:54 -0700 Subject: [PATCH] add some defense to catch console error --- px-tooltip.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/px-tooltip.html b/px-tooltip.html index 800ad378..cae6b89c 100644 --- a/px-tooltip.html +++ b/px-tooltip.html @@ -480,7 +480,7 @@ target = this.for; } //DOCUMENT_FRAGMENT_NODE - else if(parentNode.nodeType === 11) { + else if(!parentNode || (parentNode.nodeType === 11)) { //at this point if we can't find the acual owner root //we're probably not attached yet. Just set it to null //and wait for 'this' to be attached and rerun this function