Skip to content

RadioGroup validates when reseting Form #8134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
nakah opened this issue Apr 23, 2025 · 1 comment · May be fixed by #8212
Open

RadioGroup validates when reseting Form #8134

nakah opened this issue Apr 23, 2025 · 1 comment · May be fixed by #8212

Comments

@nakah
Copy link

nakah commented Apr 23, 2025

Provide a general summary of the issue here

RadioGroup component, with isRequired attribute, validates the parent Form when reseting it.
As a result, the FieldError is shown.

🤔 Expected Behavior?

The RadioGroup component should reset to it's original state like CheckBoxGroup component or any form field.

😯 Current Behavior

The RadioGroup component is not reset.

💁 Possible Solution

No response

🔦 Context

No response

🖥️ Steps to Reproduce

Here's a codesandbox : Link

Just click on reset

Version

1.8.0

What browsers are you seeing the problem on?

Microsoft Edge

If other, please specify.

No response

What operating system are you using?

Windows 11

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

@yihuiliao
Copy link
Member

This will need more investigation. It seems like other components in RAC don't exhibit this behavior (such as TextField) and RSP RadioGroup seems to work properly too.

@chirokas chirokas linked a pull request May 9, 2025 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants