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 0e486a3 commit 172e397Copy full SHA for 172e397
src/directives/repeat.js
@@ -296,10 +296,15 @@ module.exports = {
296
// make sure it works with v-if
297
if (!ref.parentNode) ref = ref.vue_ref
298
if (!detached) {
299
- // insert node with transition
300
- transition(el, 1, function () {
+ if (i > -1) {
+ // no need to transition existing node
301
ctn.insertBefore(el, ref)
302
- }, this.compiler)
+ } else {
303
+ // insert new node with transition
304
+ transition(el, 1, function () {
305
+ ctn.insertBefore(el, ref)
306
+ }, this.compiler)
307
+ }
308
} else {
309
// detached by v-if
310
// just move the comment ref node
0 commit comments