-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
MultiSelect Dropdown (react-select) options appears below the table #2945
Comments
This is unrelated to react-table, it's just how html works. |
@datner - yeah, I have checked portals, still no luck. may be portal works well with react-select when used in react table version 6, not the version 7. Anyways thanks for your suggestion. If any one else has faced this issue while using react-select (multiple dropdown) in react-table, then please do suggest. Any lead is appreciated. Thanks |
react-table 7 is headless and does not render Dom at all, I can't even think where to begin |
Agreed. but portal isnt the solution in this case. |
Why not? Protals exist for that exact reason, z-index can't help you here |
@datner - applied portals and the dropdown menu is appearing completely outside the table. Please see my screenshot. Some piece of code I am attaching here:- (MultiSelectDropdown Component)<Select
The below code is for one particular column to render the above multi select dropdown in each column WBSE <span class="required" style={{ color: "#ff0000" }} > * ), accessor: "WBSE", disableFilters: true, canGroupBy:false, Cell: ({row}) => { return ; }, }, |
I have to say I no idea why you would think this is related to note that |
@datner - i really dont understand why u keep saying its not related to react-table if u can fix it. anyways not convinced by the cosmetic look of the table u have given in first place. To end this issue, i have shared the link below in codesandbox. Have added u in code sandbox and modify it if u r abe to fix it.Appreciate ur time. |
there you go, fixed. My change is @ |
@datner Not so easy bro. I have added some more columns. try to scroll while the dropdown is open, u will find the issue. But appreciate your effort. |
again, completely unrelated to |
@datner - haan related/unrelated, separate thing. But its not fixable with your portal thing. right? :D . |
@datner - one request. sorry if i am being rude but you should refer the documentations after you go through it once. the above link which u just shared,has the limitiation of scrolling not happening within once you apply the workaround, menuShouldBlockScroll={true}. |
Thanks mate, this helped a lot, portals work perfectly! |
This issue is being marked as stale (no activity in the last 14 days) |
This issue has been detected as stale and automatically closed. It's very likely that your issue has remained here this long because it would require breaking changes to v7. React Table v8 is currently in alpha (soon beta!) and already contains bug fixes, performance improvements and architectural changes that likely address this issue.
|
Hi,
I am using Multi select dropdown (importing Select from "react-select") in one of the columns of react table and the dropdown appears below the table. issue with the css part.
I am attaching the screenshot.
instead of dropdown options going over the table, it goes down the table and as a result vertical scroll appears. have tried z-index and stuff but no luck as of now. Kindly help. thanks in advance.
The text was updated successfully, but these errors were encountered: