-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Rendering Collapse
within HTMLTable
doesn't seem to work, what am I doing wrong?
#3652
Comments
as of
|
So how does this possibly work with tables, if you can't do a |
I'm having this issue as well. The best I can come up with is wrapping the Collapse element in a with a colSpan that cover the entire row, then embedding a table inside the Collapse. That's dumb, though, and it screws up the tabular formatting. |
If anyone is still encountering this issue, can you please use the issue template and provide a code sandbox we can poke at to debug? Thanks |
@adidahiya I think at this point this should just be considered a documentation bug. The docs say "Useful when rendering a Because there's no way the current implementation could render valid HTML if setting |
Environment
Question
I don't really get the behavior that I expect from the interaction between
Collapse
andHTMLTable
. Basically, I have a list of table rows that need to expand into larger groups, e.g.:Clicking foo should expand or collapse the subcategories as necessary. Pretty straightforward.
The problem is that neither of the things I expect to work actually work when the Collapse contents are generated from props. I tried two things:
which renders a ton of collapses as
tr
s, as well as havingCollapse
outside of the map call, which creates one singleCollapse
with a bunch of programmatically generatedtr
s.Both of these fail for the same reason, because the contents of
Collapse
are still a div:which just throws:
So, uh, what am I doing wrong? The documentation says that
component
is used for rendering collapses inside tables, so I know this is POSSIBLE. :p Thanks in advance.The text was updated successfully, but these errors were encountered: