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

ScrollToItem error #45

Closed
Cxyushi opened this issue Dec 18, 2017 · 6 comments
Closed

ScrollToItem error #45

Cxyushi opened this issue Dec 18, 2017 · 6 comments

Comments

@Cxyushi
Copy link

Cxyushi commented Dec 18, 2017

No items displayed on viewport when the method scrollToItem(index) called with index which is greater then twice of the page size.
The debug info in console is:
[Vue warn]: Duplicate keys detected: ''. This may cause an update error.

@Cxyushi Cxyushi changed the title Scroll error ScrollToItem error Dec 18, 2017
@kimond
Copy link

kimond commented Dec 21, 2017

I get the same error while I'm trying to scroll fast to the end of the list. I think this is because the virtual scroll tries to generate all elements while scrolling. However, on my end, I have heavy components to render.

@Cxyushi
Copy link
Author

Cxyushi commented Dec 22, 2017

I find that the problem is caused by the variable keysEnabled, but this variable does not seem to be useful for this component.

@kimond
Copy link

kimond commented Dec 22, 2017

Why do you say that this variable does not seem to be useful for this component? I'm not sure to understand.

@Cxyushi
Copy link
Author

Cxyushi commented Dec 25, 2017

keysEnabled is a boolean variable defined in vue-virtual-scroll, which is only be used to calculate item-key for it's child components.

@kimond
Copy link

kimond commented Jan 3, 2018

I know but we cannot change this variable through the props.

@Akryum
Copy link
Owner

Akryum commented Mar 26, 2018

This shouldn't happen anymore in the latest versions.

@Akryum Akryum closed this as completed Mar 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants