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

transition-group appear class not disappear inside Suspense #1795

Closed
xcuiz opened this issue Aug 6, 2020 · 1 comment · Fixed by #1805
Closed

transition-group appear class not disappear inside Suspense #1795

xcuiz opened this issue Aug 6, 2020 · 1 comment · Fixed by #1805

Comments

@xcuiz
Copy link

xcuiz commented Aug 6, 2020

Version

3.0.0-rc.5

Reproduction link

https://github.com/xcuiz/vue-next-test.git

Steps to reproduce

npm i

npm run dev

Start dev server and navigate to localhost:8080/index

What is expected?

<div class="list">

      <div class="list-item">vue-next 0</div>

      <div class="list-item">vue-next 1</div>

      <div class="list-item">vue-next 2</div>

      <div class="list-item">vue-next 3</div>

      <div class="list-item">vue-next 4</div>

</div>

What is actually happening?

<div class="list">

  <div class="list-item appear-active v-enter-from">vue-next 0</div>

  <div class="list-item appear-active v-enter-from">vue-next 1</div>

  <div class="list-item appear-active v-enter-from">vue-next 2</div>

  <div class="list-item appear-active v-enter-from">vue-next 3</div>

  <div class="list-item appear-active v-enter-from">vue-next 4</div>
  
</div>

e.g:

in parent vue component:

<Suspense>

            <template #default>

                <router-view></router-view>

            </template>

            <template #fallback>

                加载中...

            </template>

 </Suspense> 

in child component:

<transition-group

                appear

                appear-to-class="appear-to"

                appear-active-class="appear-active">

                <div class="list-item" v-for="item of list" :key="item.id">

                    {{item.userName}}

                </div>

 </transition-group>
@posva posva changed the title transition-group appear class not disappear when using dynamic component(vue-router) transition-group appear class not disappear inside Suspense Aug 6, 2020
@posva
Copy link
Member

posva commented Aug 6, 2020

I removed the router from the demo I submitted a PR: xcuiz/vue-next-test#1

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

Successfully merging a pull request may close this issue.

2 participants