Skip to content

Commit

Permalink
fix: replace hardcoded .parentNode with abstract ops, fix #8713 (#8714)
Browse files Browse the repository at this point in the history
  • Loading branch information
Justineo authored and yyx990803 committed Sep 9, 2018
1 parent 3b43c81 commit 1e1ce0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/vdom/patch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1e1ce0c

Please sign in to comment.