GuillaumeJasmin / react-table-sticky

Sticky hook for react-table v7
MIT License
189 stars 21 forks source link

Header cell is not sticky #22

Closed debotos closed 4 years ago

debotos commented 4 years ago

The body cell is sticky but the header cell is not. Screenshot 2020-09-23 at 6 16 39 PM

debotos commented 4 years ago

I found the solution. There is a CSS style applied - position: relative; It's causing the issue. This style came when i added useResizeColumns & useBlockLayout hook.

So in the style, I marked it as important - position: sticky !important; That's did the job.

Screenshot 2020-09-23 at 6 33 39 PM