jbetancur / react-data-table-component

A responsive table library with built-in sorting, pagination, selection, expandable rows, and customizable styling.
https://react-data-table-component.netlify.app
Apache License 2.0
2.06k stars 413 forks source link

onScroll - react-data-table - Fix #1254

Open huksunkustand opened 1 month ago

huksunkustand commented 1 month ago

Hello, nice to meet you guys, congratulations on the project you have, I was reviewing the documentation and I saw that there is nothing related to obtaining the OnScrolling event,

I was trying to fix it by adding a reference (ref) to the div container and capturing the scrolling event and I saw that it works, always when the "fixedHeader" value is disabled.

But I would also like to have this static value, I mean having fixHeader = true.

I see that if this value is true it no longer captures anything in the scrolling, I see that the react-data-table component does not expose anything referenced to obtain the onScrolling event, perhaps this could be an improvement, so that the component is more robust .And thank you in advance, I use react-data-table-component quite a bit. :)

fixedHeader = FALSE image image

fixedHeader = TRUE image image

Stop capturing the event