-
Notifications
You must be signed in to change notification settings - Fork 1.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
Support multiple TableBody elements #7312
Comments
@mike-wheel Thanks for reporting this! Do you expect additional |
In addition to @nwidynski's question, would you expect each "section" to be individually scrollable/support its own async infinite scrolling? When we first started on support for TableSections in RSP, we only considered having the section be a wrapping row group or having it just represented as a row itself with an appropriate aria-row span, but having them be TableBody's is interesting, would need to see how the accessibility support is for something like that. However, from an API standpoint it is a bit inconsistent to support TableBody's in place of a TableSection when other collection components already support some form of a Section. |
@LFDanLu On this point, have you guys thought about a cell |
With regards to the TableSection itself, we added support to apply the proper |
Thanks for the responses! Honestly, my plan was to create the table sections with Either way, I find the spec permitting multiple I'm not familiar with |
@mike-wheel Haha, yeah using the native table elements can make styling a challenge. As for |
Provide a general summary of the issue here
According to the
<tbody>
MDN documentation:When I try to add two react-aria
<TableBody>
elements like this, only the last one is rendered.🤔 Expected Behavior?
Both
<TableBody>
elements are rendered.😯 Current Behavior
<TableBody className="folders">
is not rendered💁 Possible Solution
I kind of took a look at the code, and it looks like
this.body
gets overwritten every time inTable.tsx
. This logic would need to be updated to concat all thetablebody
nodes together in aReact.Fragment
or something.🔦 Context
Using multiple
<tbody>
elements can assist in implemented grouped/collapsible rows, like this https://codepen.io/andornagy/pen/gaGBZz?editors=1000🖥️ Steps to Reproduce
https://codesandbox.io/p/sandbox/thirsty-panini-d3mgyv
Notice that the first
<TableBody className="folders">
is not rendered.Version
1.3.3
What browsers are you seeing the problem on?
Firefox, Chrome, Safari, Microsoft Edge, Other
If other, please specify.
No response
What operating system are you using?
macOS Sonoma 14.6.1
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response
The text was updated successfully, but these errors were encountered: