You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually this is not a bug, it is the default behavior of the span element. Whitespace at the beginning and end of a text isn't rendered. But It seems to be related to us because we used span to separate the text. @afc163 I am not sure if we need to handle this behavior.
Sorry I can't help fixing this.
I use a workaround with . I updated the codesandbox with it.
What I don't understand is why looping through the children and create a span for each? If you do that anyway then maybe join them to get a single string?
Reproduction link
Steps to reproduce
Use JSX interpolation in Button children together with normal string
What is expected?
Space should be preserved just like when there is no interpolation
What is actually happening?
Space does not show because extra spans are created
The text was updated successfully, but these errors were encountered: