Skip to content

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

@sibbng

Description

@sibbng

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions