Closed florianBonavendi closed 7 years ago
+1 the same for me
Have you tried adding the column property to the Tds? I think they're required.
Seeing this as well w/ two children within a single <Td>
component.
Children are an <input>
and <label>
.
@mehmeta: Thanks for the hint, bit the Issue persists when adding a column property.
Anybody has a fix at hand? It makes the project rather hard to use in a real-world project this way :(
Found the trivial workaround: in case you have two or more child components below the <Td>
component, wrap them in a <div>
.
Im am trying to use reactable to output rows with i18n content with the help of
https://github.com/yahoo/react-intl,
specifically with theFormattedMessage
component that renders a<span>
tag with the i18n message for a given message key.It works flawlessly everywhere with the exception of the reactable
Td
compontent. Each FormattedMessage is rendered as[Object Object]
in the browser's DOM in this case.Simplified example:
Output: The i18n message is correctly replaced in the
noDataText
property of theTable
and in theTh
, but yields[Object Object]
in theTd
. As I am always using the sameFormattedMessage
component with the same message key, I am quite sure it has nothing to do with theFormattedMessage
compontent as such.Any idea for why this is the case and how I to prevent this?