Skip to content

Commit 5a4e1b7

Browse files
author
KuroGuo
committed
fix getContainedComponents in IE 11
1 parent 5837d2f commit 5a4e1b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/directives/if.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ module.exports = {
9090
var next
9191
while (next !== end) {
9292
next = cur.nextSibling
93-
if (cur.contains(c.$el)) {
93+
if (cur.contains && cur.contains(c.$el)) {
9494
return true
9595
}
9696
cur = next

0 commit comments

Comments
 (0)