소스 검색

Merge pull request #893 from KuroGuo/dev

fix getContainedComponents in IE 11
Evan You 11 년 전
부모
커밋
c0139e5057
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/directives/if.js

+ 1 - 1
src/directives/if.js

@@ -90,7 +90,7 @@ module.exports = {
       var next
       while (next !== end) {
         next = cur.nextSibling
-        if (cur.contains(c.$el)) {
+        if (cur.contains && cur.contains(c.$el)) {
           return true
         }
         cur = next