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
Table with sticky header: filter dropdown positions incorrectly on scroll #29366
Comments
@shaodahong Could we remove |
It would be great to have ability to use sticky header and dropdown filter together with horizontal scroll if possible. We use all of these features together on mobile. |
It's broken when set scroll |
Also noticing the same issue when a dropdown appears in an open drawer and you scroll the page down |
Hi all,
So: assigns an id to the table, then use the Now the filter dropdown is "fixed" to your table and prevent scroll issue (that annoying so much). In my case works well as expected. Cheers! |
Are there any updates? |
Reproduction link
Steps to reproduce
What is expected?
Filter dropdown shoud be positioned under column's header
What is actually happening?
Filter dropdown moves up and away from the screen:
I tried to add getPopupContainer={trigger => trigger.parentElement} to the Table, but that way filter dropdown is shown cropped inside header:
I found that adding getPopupContainer={trigger => trigger.parentElement} and setting overflow to visible on .ant-table-header is fixing it, but it breaks horizontal scrolling:
The text was updated successfully, but these errors were encountered: