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

hmr bug: data-v attribute is not append on first item #536

Closed
sibbng opened this issue Jul 9, 2020 · 1 comment
Closed

hmr bug: data-v attribute is not append on first item #536

sibbng opened this issue Jul 9, 2020 · 1 comment

Comments

@sibbng
Copy link
Contributor

sibbng commented Jul 9, 2020

Describe the bug

I have a SFC with scoped styles. I have a array. In template I'm iterating this array on transition-group. Initially this array is empty. I'm pushing items by clicking a button. After first push the data-v attribute is append on first element. But when you keep adding element, first element is losing its data-v attribute and scoped styles are not being applied. Same issue occur when array have only one item initially. If array have more then one item initially, there is no problem. This is only happens in dev mode, after build there is no problem.

Reproduction

https://github.com/sibbngheid/data-v-bug

System Info

  • vite version: vite v1.0.0-beta.11
  • Operating System: W10 WSL
  • Node version: v12.16.3
  • vue 3.0.0-beta.15
  • @vue/compiler-sfc version 3.0.0-beta.15
@underfin
Copy link
Member

It's a bug with vue core, not vite.Please track in this.vuejs/core#1561

@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants