Skip to content

[DCUBESDQLR-2831][GR] support validation modes on radio deselection - #718

Merged
weili-govtech merged 3 commits into
mainfrom
DCUBESDQLR-2831
Aug 27, 2026
Merged

[DCUBESDQLR-2831][GR] support validation modes on radio deselection#718
weili-govtech merged 3 commits into
mainfrom
DCUBESDQLR-2831

Conversation

@Govind2112

@Govind2112 Govind2112 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing apis or functionality to change)
  • Documentation (change to documentation, comments or API descriptions)
  • Tests (improvements to unit tests or E2E tests)
  • Other (technical improvements, refactoring, or changes that don't fall into the above categories)

Description of changes

  • Link to ticket: [DCUBESDQLR-2831](https://sgtechstack.atlassian.net/browse/DCUBESDQLR-2831)
  • Link to Figma: Not applicable
  • Updated radio toggle deselection so that clearing the selected option is handled through the existing form onChange flow.
  • Validation timing is now controlled by the configured validationMode and revalidationMode.
  • Supports deselection behavior for onSubmit, onChange, revalidationMode: "onChange", and revalidationMode: "onBlur".
  • Added validation handling on radio-group blur for submitted forms using revalidationMode: "onBlur".
  • Added unit tests covering radio toggle deselection and validation behavior.

Checklist

  • Changes follow the project guidelines in CONTRIBUTING.md
  • Looks good on mobile and tablet
  • Updated documentation
  • Added/updated unit tests

Screenshots

No screenshots included because this is a validation behavior fix with no visual UI changes.

@Govind2112 Govind2112 self-assigned this Aug 27, 2026
Comment thread src/components/fields/radio-button/radio-button.tsx Outdated
Comment thread src/components/fields/radio-button/radio-button.tsx Outdated
Comment thread src/components/fields/radio-button/radio-button.tsx Outdated
@weili-govtech weili-govtech added this to the v2-next milestone Aug 27, 2026
@weili-govtech weili-govtech added type: bug Something isn't working type: tests Improvements or additions to tests labels Aug 27, 2026
@weili-govtech
weili-govtech merged commit 7d47691 into main Aug 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Something isn't working type: tests Improvements or additions to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants