-
-
Notifications
You must be signed in to change notification settings - Fork 992
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
Add required
prop
#1746
Add required
prop
#1746
Conversation
Ability to set the `required` attribute on the HTML input element. This is useful when using modern browsers' builtin form validation.
Was using undefined to completely omit the `required` attribute unless requested, but false works too.
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.
Pretty straightforward and simple, was just looking for this in my current project
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.
Simple and important change
@Shamus03 Please resolve the merge conflict. |
@mattelen We can add this simple improvement now as we have released the v3. |
Done! |
Ability to set the
required
attribute on the HTML input element. This is useful when using modern browsers' builtin form validation.