Skip to content

Component inside of <option> is not handled as STRING #13699

@michalica

Description

@michalica

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions