-
Notifications
You must be signed in to change notification settings - Fork 269
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
Not able to scroll down far enough #207
Comments
@Eainde It may be possible that Material Design's referenced version is an older one. Can you update to latest and try again? |
Yes, I have updated the version. I am using 1.16.0. You can find this defect in the editor, which is mentioned in the demo link. Editor Link: https://dowjones.github.io/react-dropdown-tree-select/#/story/with-material-design-styles |
I tried to repro the issue but I don't see it. Here's a screenshot: Are you expecting a scrollbar to appear within the menu? If so, then you'll have to apply CSS to get that. Here's an example. |
No, I am not expecting that. If any parent tag has a large set of children eg 100 and if you scroll down you won't be able to see the next parent tag. eg Bind 100 children to VP Accounting and scroll down to the end, you won't be able to see Database Administrator |||. You have to shrink the expansion in order to see the next parent value. |
Oh, I see what the problem is now. In order to support large trees, we cap at 100 child nodes and use onscroll event to draw more child nodes. The problem is that the component is listening to the container's onScroll which never happens in your case (it's the window that scrolls). This is an unhandled case which should be handled. I don't have any ideas right now but Would you be interested in contributing a fix for this? |
@allcontributors[bot] please add @Eainde for bug |
I've put up a pull request to add @Eainde! 🎉 |
Adds @Eainde as a contributor for bug. This was requested by mrchief [in this comment](#207 (comment))
Adds @Eainde as a contributor for bug. This was requested by mrchief [in this comment](#207 (comment))
@mrchief : Is this issue fixed ? Please let me know the release number |
@yogeshchourey No, it’s not. If you'd like to help, I'll gladly accept a PR. |
We are also experiencing this issue |
Hi |
Hi, can you provide more clarification as to what can be done to solve this issue? |
I actually found a work around for my project. I added |
I am using material-ui and I had to add both of these: .dropdown-content .infinite-scroll-component { .dropdown-content{ overflow-y: auto } |
Please start a new discussion or issue. |
Describe the bug
When I expand a tree and the list is very long it is not allowing me to scroll down far enough and I am not able to see the next parent. It works fine if there is a small list of children then It works fine but for long lists, it is causing an issue.
Expected behavior
If there is a long list it should allow me to scroll down and see all the children associated to the parent and it should also allow me to see the next parent
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: