react-spectrum icon indicating copy to clipboard operation
react-spectrum copied to clipboard

fix: exclude null type from RadioGroup validate value

Open lixiaoyan opened this issue 2 weeks ago • 0 comments

Closes

We will never receive the null value in the validate function. See https://github.com/adobe/react-spectrum/blob/ef3ff3d5d70302ad365a7c55bd71330967f3507e/packages/%40react-stately/form/src/useFormValidationState.ts#L93

✅ Pull Request Checklist:

  • [ ] Included link to corresponding React Spectrum GitHub Issue.
  • [ ] Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • [ ] Filled out test instructions.
  • [ ] Updated documentation (if it already exists for this component).
  • [ ] Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

🧢 Your Project:

lixiaoyan avatar Nov 25 '25 14:11 lixiaoyan