Browse Source

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

dev
GU Yiling 6 years ago
committed by Evan You
parent
commit
1e1ce0cac7
  1. 2
      src/core/vdom/patch.js

2
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 {

Loading…
Cancel
Save