Skip to content

Commit bc4ef8d

Browse files
humanismusicyyx990803
authored andcommitted
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 2862d97 commit bc4ef8d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/directives/public/for.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,7 @@ function findPrevFrag (frag, anchor, id) {
539539
el !== anchor
540540
) {
541541
el = el.previousSibling
542+
if (!el) return
542543
frag = el.__vfrag__
543544
}
544545
return frag

0 commit comments

Comments
 (0)