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

Dynamic scroller not handling items prop changes correctly #774

Closed
4 tasks done
wsdimitri opened this issue Dec 7, 2022 · 2 comments
Closed
4 tasks done

Dynamic scroller not handling items prop changes correctly #774

wsdimitri opened this issue Dec 7, 2022 · 2 comments
Assignees
Labels

Comments

@wsdimitri
Copy link

Describe the bug

Using the demo project (cloned, on the latest beta version), when filtering the dynamic scroller, previous elements are shown and overlap other items. See screenshot below:

image

This is using the latest beta version 2.0.0-beta.5. The issue is also present on 2.0.0-beta.4 but not 2.0.0-beta.3.

It seems a recent change in beta 4 broke this functionality.

Reproduction

Clone the demo project and ensure vue-virtual-scroller is on the latest version.

Or, here's a StackBlitz: https://stackblitz.com/edit/vue-8g2g2k. You might have to try filtering a few times because there's 1/10th of total items due to stackblitz restrictions.

System Info

npmPackages:
    @vitejs/plugin-vue: ^3.1.2 => 3.2.0 
    vite: ^3.1.8 => 3.2.5 
    vue: ^3.2.41 => 3.2.45 
    vue-virtual-scroller: 2.0.0-beta.5 => 2.0.0-beta.5

Used Package Manager

npm

Validations

@cotillion
Copy link

We're also seeing this. Revert to beta.3 fixed it.
It seems the views are marked as nr.used = false but are still rendered.

@Akryum Akryum added the bug label Dec 9, 2022 — with Volta.net
@Akryum Akryum self-assigned this Dec 9, 2022
@Akryum Akryum closed this as completed in bd51403 Dec 14, 2022
@CatherineAugustine
Copy link

I am using 2.0.0-beta.8 and still seeing this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants