Skip to content
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

fix: ensure that other value is required when other option is selected for radio and checkbox groups #1591

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

lucasnetau
Copy link
Collaborator

@lucasnetau lucasnetau commented Nov 14, 2024

If Other has been selected we expect that a value will be provided into otherVal. Ensure this by toggling the required attribute on the otherVal text input when the otherOption input is checked

Fixes #1565

@lucasnetau
Copy link
Collaborator Author

We need some tests for these types of issues. Ensuring forms are valid etc. Will look into it.

Copy link
Owner

@kevinchappell kevinchappell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested locally. good fix!

@kevinchappell kevinchappell merged commit 978a160 into kevinchappell:master Nov 14, 2024
1 check passed
Copy link

🎉 This PR is included in version 3.19.13 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Required Checkbox Group - Other with text box - not validating blank value
2 participants