Skip to content

Radio buttons are not correctly checked when using multiple lists of radio buttons #7630

Closed
@atimmer

Description

@atimmer

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

Bug

What is the current behavior?

When there are two lists of radio buttons and they are conditionally shown the correct radio button isn't always checked. In the provided JSFiddle I have created two lists and put a button before them to toggle between the two lists. You can see when switching to the second list of radio buttons none of the radio buttons is checked even though the second one should be checked based on the state.

What is the expected behavior?

The correct radio button should be checked. The following JSFiddle shows the behaviour with React 15.3.0 where it still worked: https://jsfiddle.net/atimmer/Lzjs56sn/1/.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

✅ React 15.3.0: It works.
❌ React 15.3.1: It is broken.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions