Skip to content

[Radio] Support uncontrolled mode #13915

@Slessi

Description

@Slessi
  • This is not a v0.x issue.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior 🤔

Clicking radio button should select it

Current Behavior 😯

Clicking radio button does not select it

Steps to Reproduce 🕹

Link: https://codesandbox.io/s/2pw922z7xn

import React from "react";
import {
  FormControl,
  FormLabel,
  RadioGroup,
  Radio,
  FormControlLabel
} from "@material-ui/core";

export default _ => (
  <FormControl>
    <FormLabel>Sex</FormLabel>

    <RadioGroup name="sex">
      <FormControlLabel value="MALE" control={<Radio />} label="Male" />

      <FormControlLabel value="FEMALE" control={<Radio />} label="Female" />
    </RadioGroup>
  </FormControl>
);

Context 🔦

I want an uncontrolled Radio group

Your Environment 🌎

Tech Version
Material-UI v3.6.2
React v16.6.3
Browser Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGreat for first contributions. Enable to learn the contribution process.scope: radioChanges related to the radio.type: new featureExpand the scope of the product to solve a new problem.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions