Skip to content

Commit cb66ddd

Browse files
committed
Merge pull request #1296 from weislanes/1.0.0-alpha
Return if no previousSibling of el found
2 parents 21b4b6a + 2ee4b17 commit cb66ddd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/directives/for.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,7 @@ function findPrevFrag (frag, anchor, id) {
548548
el !== anchor
549549
) {
550550
el = el.previousSibling
551+
if (!el) return
551552
frag = el.__vfrag__
552553
}
553554
return frag

0 commit comments

Comments
 (0)