Skip to content

Checkbox - validate to return validity #3672

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

Merged
merged 5 commits into from
Apr 3, 2025

Conversation

nitzanyiz
Copy link
Collaborator

Description

Fixed CheckBox validate function to return validity.

Changelog

Checkbox - Fixed validate function not returning validity

Additional info

Action item of MADS-4643

Comment on lines 311 to 312
this.setState({showError: error, isValid: !error});
return !error;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Personally I'd add const isValid = !error; above and change these two, leaving it up to you

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I changed. Can you take a look and approve again? 🙏

@M-i-k-e-l M-i-k-e-l assigned nitzanyiz and unassigned M-i-k-e-l Apr 2, 2025
@nitzanyiz nitzanyiz assigned M-i-k-e-l and unassigned nitzanyiz Apr 3, 2025
@nitzanyiz nitzanyiz merged commit 8daa83d into master Apr 3, 2025
1 check passed
@nitzanyiz nitzanyiz deleted the feat/checkbox-validate-to-return-validity branch April 3, 2025 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants