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 has no class or data attribute #13053

Closed
xxSkyy opened this issue Dec 13, 2021 · 6 comments
Closed

transition-group has no class or data attribute #13053

xxSkyy opened this issue Dec 13, 2021 · 6 comments

Comments

@xxSkyy
Copy link

xxSkyy commented Dec 13, 2021

Environment


  • Operating System: Darwin
  • Node Version: v16.13.1
  • Nuxt Version: 3.0.0-27319101.3e82f0f
  • Package Manager: yarn@1.22.17
  • Bundler: Vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://codesandbox.io/s/nuxt3-ssr-broken-transition-group-99h1q

Describe the bug

transition-group with tag don't have classes, also it don't includes data-element, classes and data attribute only shows after changing transition-group property on hot reload but after refresh or in build-start it doesn't work

obraz

Additional context

No response

Logs

No response

@xxSkyy xxSkyy changed the title transition-group has no class transition-group has no class or data attribute Dec 13, 2021
@olivervorasai
Copy link

This bug is still present as of 3.0.0-27376999.6abf75d (latest on Jan 20, 2022)

https://codesandbox.io/s/nuxt3-transition-group-no-classes-bug-rlu7m?file=/app.vue

@danielroe
Copy link
Member

Would you raise it as an issue in the Vue repo? https://github.com/vuejs/core/issues

@xxSkyy
Copy link
Author

xxSkyy commented Jan 21, 2022

It is since long time and has open PR request.
vuejs/core#5141
I've kept this open till upstream will close

@danielroe
Copy link
Member

Perfect. Thank you ❤️

@mctweb
Copy link

mctweb commented Apr 14, 2022

This issue is still present.

<transition-group name="list" tag="ul" >
      <li v-for="item in sortedList" :key="item.uid">
          {{item}}
       </li>
</transition-group>

.list-move{ transition: all 1s; }

The list displays correctly, however the class isn't applied upon changing the order of the list. As such the transition doesn't work.
I've tried wrapping with <ClientOnly> however this makes no difference.

Regular <Transition> tags are working ok.

There has been no movement upstream in vuejs/core#5141

@xxSkyy
Copy link
Author

xxSkyy commented May 19, 2022

Fixed in vuejs/core@aed10c5
Checked in codesandbox on latest Nuxt3 and it's working as it should.

@xxSkyy xxSkyy closed this as completed May 19, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 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

4 participants