Skip to content

Remove check for all fields being touched for form to be valid #75

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
Dec 11, 2020

Conversation

subpx
Copy link
Contributor

@subpx subpx commented Dec 10, 2020

Fixes #47

@subpx
Copy link
Contributor Author

subpx commented Dec 10, 2020

Can anyone help with what is failing here or re run the checks?

email: true,
country: true,
});
it('returns true if form is valid', () => {
subscribeOnce(instance.isValid).then((isValid) =>
Copy link
Collaborator

Choose a reason for hiding this comment

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

@subpx the build is failing from an unhandled rejection, so it could likely be this line since there's no .catch statement.

This test should ideally use async / await, or done() should be called inside the then to signal that the test is complete, too.

@larrybotha
Copy link
Collaborator

@subpx thanks for the fix - all looks good to me!

Awaiting 1 more review before merge.

Copy link
Collaborator

@tiaanduplessis tiaanduplessis left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @subpx !

@tiaanduplessis tiaanduplessis merged commit ad18774 into tjinauyeung:master Dec 11, 2020
@tjinauyeung
Copy link
Owner

🎉 This PR is included in version 1.3.0 🎉

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.

Why does isValid require all fields to be touched?
4 participants