Issue with Nested Usage of vue-virtual-scroll Components
Author: srackhallCreated Mar 9, 2024Updated Mar 2, 2025
Labelsbug
Describe the bug
I encountered a bug related to the nested usage of components provided by vue-virtual-scroll. The nesting involves an outer vertical virtual list and an inner horizontal virtual list.
The bug manifests as follows: Click events on elements of the inner horizontal list can be triggered normally by default. However, after horizontal scrolling, when returning to the original position, the events can no longer be triggered properly.
Reproduction
- Set up a
vue-virtual-scrollwith nested vertical and horizontal lists. - Click on an element in the inner horizontal list - observe that the event is triggered.
- Scroll horizontally.
- Return to the original position and click on the same element - observe that the event is not triggered.
System Info
win10
chromeUsed Package Manager
npm
Validations
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.
Source: Akryum/vue-virtual-scroller