-
Notifications
You must be signed in to change notification settings - Fork 72
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
JSX variable interpolation doesn't work in <option> children #105
Labels
Comments
jbachhardie
changed the title
JSX variable interpolation doesn'
JSX variable interpolation doesn't work in <option> children
Jan 24, 2022
This is expected. It's how React works: facebook/react#13465 If you just did |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
If the content of an
<option>
tag is constructed via JSX interpolation, only the first fragment ends up rendered in the HTMLTo Reproduce
Steps to reproduce the behavior:
<option>
the rendered text is "JSX concatenation of " whereas the second one renders the full expected value of "string concatenation of foo"Expected behavior
Both forms of interpolation should result in the same HTML, as they do in vanilla React
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: