-
Notifications
You must be signed in to change notification settings - Fork 273
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
[ui5-table]: Table mode Scroll does not work after None mode is set once #8052
Comments
Hi @eliatso , Please provide live isolated example in https://codesandbox.io/ or similar that demonstrates the issue. Best Regards, |
Hi @eliatso you can start with this sample https://codesandbox.io/p/devbox/ui5-webcomponents-starter-k4l955 it already imports the Table (and other components) so you can quickly set up your use-case. |
Hello, everyone! The issue has been inactive for 21 days. If there are still questions or comments, please feel free to continue the discussion. Inactive issues will be closed after 7 days! |
Hello @NHristov-sap and @ilhan007, sorry for the delay Basically, I have created a Table with Once you click on Please click on the The setting with buttons seem to work fine, if you first click on Thank you |
Hello @SAP/ui5-webcomponents-topic-rl, Please have a look at this issue regarding the Thanks and Kind regards, |
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
Bug Description
Hello,
I am reporting a bug regarding the Table
Scroll
mode.We are setting the table mode to
NONE
if no load more is needed in the table. But, if it is, the table mode is set toSCROLL
.Basically, if the Table is initialized with
SCROLL
mode, the scrolling is working fine but once we set it toNONE
then toSCROLL
again, it will stop working.It seems like the load more event is not detected. However, it works well with the Button mode (when we click on it, the load more is called).
Thanks in advance.
Affected Component
Table
Expected Behaviour
At initialization Table mode is
SCROLL
-> Scrolling worksUse filters on table so that Table mode is set to
NONE
-> No scrollingDelete the filters and set Table mode to
SCROLL
again -> Scrolling works againIsolated Example
No response
Steps to Reproduce
SCROLL
and scrolling is workingNONE
so no scrollingSCROLL
again but scrolling does not work anymoreLog Output, Stack Trace or Screenshots
No response
Priority
Medium
UI5 Web Components Version
1.18.0
Browser
Chrome, Edge, Firefox
Operating System
No response
Additional Context
No response
Organization
No response
Declaration
The text was updated successfully, but these errors were encountered: