Open aayush-makwana opened 8 months ago
Link to live example without using state: https://codesandbox.io/p/sandbox/agitated-bogdan-dx9dvn
Link to live example using state: https://codesandbox.io/p/sandbox/brave-chandrasekhar-3h9gdv
When using Radio Group component, Pressing the reset button in a form does not revert value of the Radio Group to its default value.
If I use Radio Group with state then it will work properly.
Changes in the value of the Radio Group will get reset while clicking on the reset button when we are not using the state (for the first codesandbox).
No response
npx @mui/envinfo
This should be supported in Base UI first, and then in Material UI after refactoring to use Base UI's RadioGroup.
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example without using state: https://codesandbox.io/p/sandbox/agitated-bogdan-dx9dvn
Link to live example using state: https://codesandbox.io/p/sandbox/brave-chandrasekhar-3h9gdv
Current behavior 😯
When using Radio Group component, Pressing the reset button in a form does not revert value of the Radio Group to its default value.
If I use Radio Group with state then it will work properly.
Expected behavior 🤔
Changes in the value of the Radio Group will get reset while clicking on the reset button when we are not using the state (for the first codesandbox).
Context 🔦
No response
Your environment 🌎
``` System: OS: Windows 10 10.0.19045 Binaries: Node: 20.9.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD npm: 10.1.0 - C:\Program Files\nodejs\npm.CMD Browsers: Chrome: Not Found Edge: Chromium (120.0.2210.77) npmPackages: @emotion/react: ^11.11.1 => 11.11.1 @emotion/styled: ^11.11.0 => 11.11.0 @mui/base: 5.0.0-beta.28 @mui/core-downloads-tracker: 5.15.1 @mui/material: ^5.15.1 => 5.15.1 @mui/private-theming: 5.15.1 @mui/styled-engine: 5.15.1 @mui/system: 5.15.1 @mui/types: 7.2.11 @mui/utils: 5.15.1 @types/react: ^18.2.45 => 18.2.45 react: ^18.2.0 => 18.2.0 react-dom: ^18.2.0 => 18.2.0 typescript: ^4.9.5 => 4.9.5 ```npx @mui/envinfo