-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[data grid] onRowsScrollEnd
triggered instantly when using a bottom pinned row
#12973
Comments
onRowsScrollEnd
triggered instantly when using a bottom pinned rowonRowsScrollEnd
triggered instantly when using a bottom pinned row
Ok, I can confirm this is a buug on our end. -pinnedRows={{ bottom: [{ id: 'abc', ...rows[0] }] }}
+pinnedRows={{ bottom: [{ ...rows[0] }], id: 'abc' }} This way the @DanailH ... this is your expertise ... do you want to have a look into that? :P |
Additional info: |
Oh yes you're right. I arranged the demo quickly and didn't notice the duplicated id. It's not the case in my app code though. |
Hello @michelengelen, do you have any updates on this issue ? |
@michelengelen are you able to provide an update, thanks |
Sry... I have been on vacation. I'll add it to the board for the team to have a deeper look! Again: sry for the delay! |
Thanks for the reply @michelengelen! If you can provide an ETA, that would be great! (Premium customer) |
@michelengelen Do you have any update on this or an ETA? |
@michelengelen Looking for an update on this or an ETA. Premium customer - Support ID: 96081 |
We did not schedule this yet ... I'll ask the team if we can move it up in priority. |
Thank you! |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note We value your feedback @martin-mael! How was your experience with our support team? |
Steps to reproduce
Link to live example: (required)
Steps:
Datagrid
, with enough rows to be scrollable and pass a function toonRowsScrollEnd
Check the example : https://stackblitz.com/edit/react-kvryv4?file=Demo.tsx
Notice how the second page load is triggered instantly, and how scrolling doesn't trigger a new page load.
Current behavior
The function passed to
onRowsScrollEnd
is called instantly, and not when the main container of the datagrid reaches its bottom scroll area.Same behavior using Chrome, Firefox and Safari latest.
Expected behavior
The function passed to
onRowsScrollEnd
should only be called when scrolling to the bottom of the grid.Context
My code is working correctly using version
6.19.11
(latest v6 version as of date). I was migrating mui-x pro packages to v7, and my infinite scroll pagination broke. It works correctly when removing the bottom pinned row (it's used to represent totals).Your environment
npx @mui/envinfo
Search keywords: onRowsScrollEnd bottom pinned row v7
Order ID: 83724
The text was updated successfully, but these errors were encountered: