π Incorrect Header floating when scrolling and grouping + sticky header rows
yvone-sre opened this issue Β· comments
- what edition are you using - enterprise
- version - 5.9.4
What you did: Grouping data and having sticky header rows
What happened: After scrolling, the first sticky header seems to be working correctly, but by reaching the second header and so on, the headers stay and do not float up and down as per their grouping.
![image](https://private-user-images.githubusercontent.com/147645869/277051176-75b6560d-1abe-44c0-9182-57996fc187fa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDg2NzQ0NTAsIm5iZiI6MTcwODY3NDE1MCwicGF0aCI6Ii8xNDc2NDU4NjkvMjc3MDUxMTc2LTc1YjY1NjBkLTFhYmUtNDRjMC05MTgyLTU3OTk2ZmMxODdmYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwMjIzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDIyM1QwNzQyMzBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hZjMwYjM1N2VmMDA2MDI0MGI0OGUzNDU3YzIwYTM1MzZkMjgzZWQ2YWY5NGU4NzBjY2U3YzZlMjE3YmZhYmMxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.S6tfUH6fFd1ZXGMuWGcvA0ONrw4FrlU7P24PeZJa5Jo)
Reproduction repository:
=> example from the docs: https://reactdatagrid.io/docs/grouping-rows
- expand the first example for grouping
- change the group key from "permission to call" to "first name"
- check the option for "Use sticky group rows"
- scroll down and see the headers start floating incorrectly above the grid instead of floating up and down as per grouping
=> example from a codesandbox: https://codesandbox.io/s/sticky-group-rows-yj4n7s?file=/src/App.js
Problem description: Reading and using the data on the grid with this issue makes it confusing.
Suggested solution: Ideally, the headers should remain sticky at the top, but at least move along their grouping data and not float above the other cells. I found this sandbox (from an unrelated issue, don't mind that) with a close behavior to what's ideal https://stackoverflow.com/a/53468623