We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5837d2f commit 34101dbCopy full SHA for 34101db
src/directives/if.js
@@ -88,9 +88,11 @@ module.exports = {
88
function contains (c) {
89
var cur = start
90
var next
91
+ var isElementNode
92
while (next !== end) {
93
next = cur.nextSibling
- if (cur.contains(c.$el)) {
94
+ isElementNode = cur.nodeType === Node.ELEMENT_NODE
95
+ if (isElementNode && cur.contains(c.$el)) {
96
return true
97
}
98
cur = next
0 commit comments