react-data-table-component icon indicating copy to clipboard operation
react-data-table-component copied to clipboard

onScroll - react-data-table - Fix

Open huksunkustand opened this issue 1 year ago • 0 comments

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

huksunkustand avatar Sep 30 '24 16:09 huksunkustand