Skip to content

transition-group with v-move class not working properly for elements with immediate watchers that calls $set #10596

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bluwy opened this issue Oct 4, 2019 · 4 comments

Comments

@bluwy
Copy link

bluwy commented Oct 4, 2019

Version

2.6.10

Reproduction link

https://codesandbox.io/s/vue-transition-group-bug-wnvwv

Steps to reproduce

  1. Open codesandbox.
  2. Click the "toggle transition" checkbox.

What is expected?

The enter transition should be animate smoothly.

What is actually happening?

In transition group with v-move class, the elements with immediate watchers that calls $set interrupts the enter transition causing it to "snap".


In the codesandbox repro, I provided workarounds to fix this problem.

I found this bug in this vuetify issue.

This happened on vuetify's 2.0.19 release where this code was added in to resolve issue #10115.

I'm not sure what is the direct cause as both the v-move class and the immediate watcher causes this issue.

@posva
Copy link
Member

posva commented Oct 4, 2019

Duplicate of #7879

@posva posva marked this as a duplicate of #7879 Oct 4, 2019
@posva posva closed this as completed Oct 4, 2019
@bluwy
Copy link
Author

bluwy commented Oct 4, 2019

This isn't a duplicate of the linked issue. That issue had problems with the v-show directive with transition groups whereas this issue only uses v-if, but v-if isn't really the factor causing this issue though.

I tested the linked issue's jsfiddle and changed v-show to v-if and it works as expected. So I'm guessing both aren't directly related.

@posva
Copy link
Member

posva commented Oct 4, 2019

Right, I didn't see the Test component having specific behavior

@posva posva reopened this Oct 4, 2019
@bluwy
Copy link
Author

bluwy commented Apr 2, 2023

Given this is a very niche edgecase, and it's not blocking me anymore, and probably fixed in Vue 3, I'll close this for now.

@bluwy bluwy closed this as not planned Won't fix, can't repro, duplicate, stale Apr 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants