-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Labels
Comments
It's a bug with vue core, not vite.Please track in this.vuejs/core#1561 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 thedata-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.11vue
3.0.0-beta.15@vue/compiler-sfc
version 3.0.0-beta.15The text was updated successfully, but these errors were encountered: