Skip to content

HTML Select Option Can't Handle React Child Node  #14903

@brenthosie

Description

@brenthosie

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
The Option component used for HTML Select can no longer support React Nodes as a child.

Fiddle of problem
https://jsfiddle.net/83hr5smv/

What is the expected behavior?
The select would display the option label using the wrapped React node.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
I tried to upgrade to v16.6.3 when I found this problem. Last known working version was v16.2.0. I haven't investigated between 16.2.0 and 16.6.3, but I did confirm this is still a problem on the latest stable v16.8.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions