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

Required attribute #35

Closed
carlhussey opened this issue Apr 4, 2019 · 3 comments
Closed

Required attribute #35

carlhussey opened this issue Apr 4, 2019 · 3 comments

Comments

@carlhussey
Copy link

What is the purpose of required? I set it to true, pressed "Okay" and the input went away triggering the result.

I am looking for a way to require a value to be input if they press "okay", if not, it will remain there until they enter one or hit cancel.

@p-sam
Copy link
Owner

p-sam commented Apr 4, 2019

I see, well some form validations callback might not be triggered right now, as you're "not submitting it" and just pressing a button. But I think I tried that at some point. Anyway required set to true or "required" should prevent you from submitting a form if the field is empty

@p-sam
Copy link
Owner

p-sam commented May 27, 2019

Closing for inactivity

@p-sam p-sam closed this as completed May 27, 2019
@yafp
Copy link

yafp commented May 31, 2019

having an option to prevent empty inputs would be great.

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

3 participants