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

fix: make virtualizer with placeholders retry scroll to index #6588

Merged
merged 8 commits into from
Oct 4, 2023

Conversation

tomivirkki
Copy link
Member

@tomivirkki tomivirkki commented Oct 3, 2023

Description

Make the virtualizer retry scrolling to an index on the next round of element updates in case there are placeholder items in the DOM after scrollToIndex.

This change is a prerequisite to finishing vaadin/flow-components#5037 without having to work around the issue in the connector.

Type of change

Bugfix

@tomivirkki tomivirkki marked this pull request as draft October 3, 2023 14:01
@tomivirkki tomivirkki force-pushed the fix/virtualizer/placholders-scroll-to-index branch 2 times, most recently from 6c464b3 to f1d3efd Compare October 4, 2023 06:31
@tomivirkki tomivirkki force-pushed the fix/virtualizer/placholders-scroll-to-index branch from f1d3efd to 85c8afb Compare October 4, 2023 10:15
@tomivirkki tomivirkki force-pushed the fix/virtualizer/placholders-scroll-to-index branch from 85c8afb to 7aa6268 Compare October 4, 2023 10:22
@tomivirkki tomivirkki marked this pull request as ready for review October 4, 2023 10:41
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 4, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@tomivirkki tomivirkki merged commit 052be13 into main Oct 4, 2023
@tomivirkki tomivirkki deleted the fix/virtualizer/placholders-scroll-to-index branch October 4, 2023 13:49
@web-padawan web-padawan removed their request for review October 5, 2023 08:25
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

Successfully merging this pull request may close these issues.

3 participants