Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18eab68 commit 6993cfcCopy full SHA for 6993cfc
src/directives/public/for.js
@@ -358,6 +358,13 @@ const vFor = {
358
*/
359
360
move: function (frag, prevEl) {
361
+ // fix a common issue with Sortable:
362
+ // if prevEl doesn't have nextSibling, this means it's
363
+ // been dragged after the end anchor. Just re-position
364
+ // the end anchor to the end of the container.
365
+ if (!prevEl.nextSibling) {
366
+ this.end.parentNode.appendChild(this.end)
367
+ }
368
frag.before(prevEl.nextSibling, false)
369
},
370
0 commit comments