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
Dropdowns don't move on scroll #8300
Comments
Duplicate of #8268 |
@afc163 I've tried to set the popup container to every element I can think of but the scroll behavior is still broken. Example with getPopupContainer: |
@afc163 This still is making problems with every element I use, can you provide any help as to what I'm supposed to set the PopupContainer to? |
@afc163 Thanks, but this works only for Select but not for the DatePicker component |
https://ant.design/components/date-picker/#API DatePicker has a different prop name: |
@afc163 Thank you very much, I must have overlooked that one. But is there any reason getScrollParent(node) {
if (node.parentElement === null) {
return node;
}
return node.parentElement.scrollHeight > node.clientHeight
|| node.parentElement.scrollWidth > node.clientWidth
? node.parentElement
: getScrollParent(node.parentElement);
} |
use "getCalendarContainer" for datePicker |
Version
2.13.10
Environment
Windows 10, Chrome 61
Reproduction link
https://codepen.io/anon/pen/jaxdMz?&editors=001
Steps to reproduce
Put a Component with a Dropdown(e.g. DatePicker, Select) in an element with overflow which can be scrolled.
What is expected?
The Dropdown should move with the Component on Scroll.
What is actually happening?
When you scroll inside the element with the mouse wheel the Component itself moves as expected but the Dropdown stays in the same place.
Before Scroll:
After Scroll:
The text was updated successfully, but these errors were encountered: