Quellcode durchsuchen

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

GU Yiling vor 7 Jahren
Ursprung
Commit
1e1ce0cac7
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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 {