Skip to content

Commit 2ee4b17

Browse files
committed
Return if no previousSibling of el found
Cater for scenario where there is no previous sibling of el. Solution to #1249 and similar to #982. Occurs in scenario where dragging between lists using a library such as RubaXa Sortable.
1 parent 12ad53c commit 2ee4b17

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)