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

Empty values should not be valid for required inputs #733

Open
drapisarda opened this issue May 6, 2021 · 3 comments
Open

Empty values should not be valid for required inputs #733

drapisarda opened this issue May 6, 2021 · 3 comments
Assignees

Comments

@drapisarda
Copy link
Contributor

On a required HdInput instance, a value made of just spaces like is considered to be valid and fulfilling the requirement. This allows the submission of empty data.

@drapisarda drapisarda self-assigned this May 6, 2021
@viniciuskneves
Copy link
Contributor

Doesn't .trim solve it?

Reference: https://vuejs.org/v2/guide/forms.html#trim

@drapisarda
Copy link
Contributor Author

Yes, but why trim? That's not valid by itself.

@viniciuskneves
Copy link
Contributor

I thought trimming would make it fail once "required". Just a random thought here...

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

No branches or pull requests

2 participants