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(ui5-table): correct load-more event on mode change #9434

Merged
merged 2 commits into from
Jul 10, 2024
Merged

Conversation

nnaydenow
Copy link
Contributor

@nnaydenow nnaydenow commented Jul 9, 2024

If the ui5-table is made with mode=Growing, and then the mode is changed to None and back to Growing, the load-more event is not fired anymore. This is because the observed element by IntersectionObserver is not in the DOM anymore because it is conditionally rendered. To fix this, we reset the tableEndObserved flag when the mode changes, so the observed element is set again correctly when the DOM is ready.

Fixes: #8052

@nnaydenow nnaydenow requested a review from ilhan007 July 10, 2024 07:39
@nnaydenow nnaydenow merged commit 55aa134 into main Jul 10, 2024
10 checks passed
@nnaydenow nnaydenow deleted the table-mode branch July 10, 2024 09:46
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.

[ui5-table]: Table mode Scroll does not work after None mode is set once
2 participants