Skip to content

Commit

Permalink
fix: replace hardcoded .parentNode with abstract ops, fix vuejs#8713 (v…
Browse files Browse the repository at this point in the history
  • Loading branch information
Justineo authored and aJean committed Aug 19, 2020
1 parent abdf40e commit 3885e58
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 3885e58

Please sign in to comment.