Open LarsBuur opened 6 years ago
Thank for submitting bug! This is a notable one. React-Inlinese hasn't supported multiple children yet (https://github.com/ttrinh/react-inlinese/blob/f2c3185b944637d1e07bdc2f6ad9fe563db2f5dc/src/index.js#L276). In the meantime, a quick fix could be achieved by adding an enclosing <span>..</span>
around your children elements.
See this example https://codesandbox.io/s/p744o07vrm
Thanks!! I'm gonna upgrade/rewrite this package soon to make it more flexible.
We have texts with line breaks that we want to display to the user in non-edit modus.
We use this code to break up the string into multiple lines.
this throws this warning in the console:
Any suggestions how to resolve this? - we provide the plain string to the value of the Inlinese component.