Skip to content

v-for not reusing existing elements #12937

Open
@ereveniaud

Description

@ereveniaud

Version

2.7.14

Reproduction link

codepen.io

Steps to reproduce

  • Focus an input in the list
  • Scroll up, the input still has the focus (row reused)
  • Scroll down, the input loose the focus (row rendered)

What is expected?

Elements should not be re-rendered when scrolling down (same behavior as scroll up)

What is actually happening?

When scrolling up, only new elements are rendered.
When scrolling up, all elements are rendered


Work as expected in Vue 3 (codepen: https://codepen.io/thel-rico/pen/mdjqVZJ)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions