-
Notifications
You must be signed in to change notification settings - Fork 50.9k
Component inside of <option> is not handled as STRING #13699
Copy link
Copy link
Closed
Description
What is the current behavior?
We use react-intl to do translations in our project. Since 16.5.0 release of react-dom we cannot use this anymore. <option><FormattedMessage id="something"></option>.
If we use that snapshot tests don't fail(we use react-test-renderer). When u look on rendered html there is a string rendered in option tag.
What is the expected behavior?
Tests failing. If we have any react component in option tag we expected to [Object Object] to be rendered inside of option.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
we use create-react-app. it only occurs is test env.
react, react-dom, react-test-renderer 16.5.1
react-int 2.6.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels