瀏覽代碼

fix: replace hardcoded .parentNode with abstract ops, fix #8713 (#8714)

GU Yiling 7 年之前
父節點
當前提交
1e1ce0cac7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/vdom/patch.js

+ 1 - 1
src/core/vdom/patch.js

@@ -272,7 +272,7 @@ export function createPatchFunction (backend) {
   function insert (parent, elm, ref) {
     if (isDef(parent)) {
       if (isDef(ref)) {
-        if (ref.parentNode === parent) {
+        if (nodeOps.parentNode(ref) === parent) {
           nodeOps.insertBefore(parent, elm, ref)
         }
       } else {