Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

janpetto
Copy link

1. Why is this change necessary?

The sw-select-result-list component is used in different select components and emits the paginate event whenever the user has scrolled to the bottom of the current options. Due to sub-pixel rendering and rounding differences across browsers, it can happen that the method to calculate the distance to the bottom returns a value slightly larger than 0, even when scrolled completely to the bottom. This will result in the sw-select-result-list component to never emit the paginate event.

2. What does this change do, exactly?

This change fixes the issue by rounding down the calculated difference to the bottom. If the distance to the bottom is less than one pixel, the list is considered to be scrolled to the bottom.

3. Describe each step to reproduce the issue or behaviour.

Many entity select fields do not load the next page when scrolling to the bottom of the result list. For example in the product filter of the order list page:

Screencast.from.2025-10-13.15-21-26.webm

4. Please link to the relevant issues (if any).

  • no matching issue found

5. Checklist

  • I have written tests and verified that they fail without my change
  • I have created a changelog file with all necessary information about my changes
  • I have written or adjusted the documentation according to my changes
  • This change has comments for package types, values, functions, and non-obvious lines of code
  • I have read the contribution requirements and fulfilled them

@github-actions github-actions bot added milestone/6.7.4.0 external-contribution A PR contributed by a community member. needs-triage A newly created issue or PR that needs team assignment and/or prioritization. labels Oct 16, 2025
@mitelg mitelg added component/administration domain/framework Responsible for the framework-level code includes core, administration, storefront, and frontends and removed needs-triage A newly created issue or PR that needs team assignment and/or prioritization. labels Oct 16, 2025
@mitelg mitelg requested a review from jleifeld October 16, 2025 09:19
@jleifeld jleifeld requested a review from a team October 17, 2025 07:33
@@ -0,0 +1,9 @@
---
title: Fix select result list not loading the next page
issue: NEXT-00000
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
issue: NEXT-00000

@mitelg
Copy link
Member

mitelg commented Oct 17, 2025

@janpetto would you mind having a look again? alternatively you can allow to make changes by us, then we can go on by ourselves 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/administration domain/framework Responsible for the framework-level code includes core, administration, storefront, and frontends external-contribution A PR contributed by a community member. milestone/6.7.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.