-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fixed required validation considering false value falsy #31
Conversation
expect(result).to.equal(null); | ||
}); | ||
|
||
it('Validating a simple component that is required and present in the data with value=false will return null', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't really a valid test case, because the data from a text field will never be false
under normal circumstances. Can we update this test to include a radio component and a checkbox component?
Hi @brendanbond |
We need to revert this PR because it broke Checkbox "required" validations. If you have a required checkbox, it lets you not click it. |
Revert "Merge pull request #31 from ralfeis/master"
Hi,
this is a fix for: formio/formio.js#5457
Best regards
Ralf