diff --git a/debug/src/debug.js b/debug/src/debug.js index e51719e7c8..a5b660a9ac 100644 --- a/debug/src/debug.js +++ b/debug/src/debug.js @@ -42,8 +42,8 @@ function getDomChildren(vnode) { function getClosestDomNodeParentName(parent) { if (!parent) return ''; if (typeof parent.type == 'function') { - if (parent._parent === null) { - if (parent._dom !== null && parent._dom.parentNode !== null) { + if (parent._parent == null) { + if (parent._dom != null && parent._dom.parentNode != null) { return parent._dom.parentNode.localName; } return '';