-
Notifications
You must be signed in to change notification settings - Fork 33
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
getHeadingsFromChildren forces use of string as table cell child #105
Comments
Hi @tctc91 Could you share a minimal repo to check your react-table implementation, as |
Thanks for the quick reply @KaiSpencer. Apologies, I missed an important point in that my column headers are setup using i18n translations e.g
I'll get a demo setup today |
Hi, this is a known limitation of the current responsive table implementation - do you think it would be useful to allow React components in cell headers? |
We have a use case for this too:
|
Hi 👋
I'm upgrading to use the v2 beta version on a project and had some issues around the responsive table component. My bad If I'm doing something totally wrong but looks to me like this might be something that could be tweaked.
My table is dynamically created using the
react-table
library and the table cell values are rendered via a method. This used to work fine in v1, but in v2 due to the responsive changes and more specifically thegetHeadingsFromChildren
helper, we can no longer use anything other than a string as a child ofTable.Cell
.My code:
What gets rendered now:
I fixed this for now by importing
renderToString
fromreact-dom/server
but this isn't an ideal solutionThanks
The text was updated successfully, but these errors were encountered: