Skip to content

Commit 34bc14e

Browse files
gebilaoxiongyyx990803
authored andcommitted
improve:readability of updateChildren (#5670)
1 parent 3cda98a commit 34bc14e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/vdom/patch.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ export function createPatchFunction (backend) {
412412
if (sameVnode(elmToMove, newStartVnode)) {
413413
patchVnode(elmToMove, newStartVnode, insertedVnodeQueue)
414414
oldCh[idxInOld] = undefined
415-
canMove && nodeOps.insertBefore(parentElm, newStartVnode.elm, oldStartVnode.elm)
415+
canMove && nodeOps.insertBefore(parentElm, elmToMove.elm, oldStartVnode.elm)
416416
newStartVnode = newCh[++newStartIdx]
417417
} else {
418418
// same key but different element. treat as new element

0 commit comments

Comments
 (0)