Skip to content
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

v-if Transition inside Suspense never completes #1689

Closed
Jexordexan opened this issue Jul 24, 2020 · 0 comments · Fixed by #1698
Closed

v-if Transition inside Suspense never completes #1689

Jexordexan opened this issue Jul 24, 2020 · 0 comments · Fixed by #1698

Comments

@Jexordexan
Copy link

Version

3.0.0-rc.4

Reproduction link

https://codesandbox.io/s/vue-3-transition-error-tyxf7?file=/index.html

Steps to reproduce

A transition with a v-if inside a Suspense element never finishes its transition. This bug was introduced by #1588.

        <button @click="show = !show">Toggle modal</button>
        <Suspense>
          <Transition>
            <div class="modal" v-if="show">
              I wont complete my animation becuase I'm in a Suspense
            </div>
          </Transition>
        </Suspense>
        <Transition>
          <div class="modal" v-if="show">
            I will complete my animation
          </div>
        </Transition>

What is expected?

The transition finishes

What is actually happening?

The v-enter-active and v-enter-from classes are applied, but the rest of the transition is never scheduled due to the parent being a Suspense.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant