File tree 1 file changed +1
-3
lines changed
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -406,7 +406,6 @@ export function createPatchFunction (backend) {
406
406
: findIdxInOld ( newStartVnode , oldCh , oldStartIdx , oldEndIdx )
407
407
if ( isUndef ( idxInOld ) ) { // New element
408
408
createElm ( newStartVnode , insertedVnodeQueue , parentElm , oldStartVnode . elm )
409
- newStartVnode = newCh [ ++ newStartIdx ]
410
409
} else {
411
410
elmToMove = oldCh [ idxInOld ]
412
411
/* istanbul ignore if */
@@ -420,13 +419,12 @@ export function createPatchFunction (backend) {
420
419
patchVnode ( elmToMove , newStartVnode , insertedVnodeQueue )
421
420
oldCh [ idxInOld ] = undefined
422
421
canMove && nodeOps . insertBefore ( parentElm , elmToMove . elm , oldStartVnode . elm )
423
- newStartVnode = newCh [ ++ newStartIdx ]
424
422
} else {
425
423
// same key but different element. treat as new element
426
424
createElm ( newStartVnode , insertedVnodeQueue , parentElm , oldStartVnode . elm )
427
- newStartVnode = newCh [ ++ newStartIdx ]
428
425
}
429
426
}
427
+ newStartVnode = newCh [ ++ newStartIdx ]
430
428
}
431
429
}
432
430
if ( oldStartIdx > oldEndIdx ) {
You can’t perform that action at this time.
0 commit comments