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

Add required prop #1746

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add required prop #1746

wants to merge 3 commits into from

Conversation

Shamus03
Copy link

Ability to set the required attribute on the HTML input element. This is useful when using modern browsers' builtin form validation.

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.
Copy link

@wasiqwiqar wasiqwiqar left a 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

Copy link

@ZS-Andisch ZS-Andisch left a 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

@akki-jat
Copy link
Collaborator

akki-jat commented May 7, 2024

@Shamus03 Please resolve the merge conflict.

@akki-jat
Copy link
Collaborator

akki-jat commented May 7, 2024

@mattelen We can add this simple improvement now as we have released the v3.

@Shamus03
Copy link
Author

Shamus03 commented May 7, 2024

@Shamus03 Please resolve the merge conflict.

Done!

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

Successfully merging this pull request may close these issues.

None yet

4 participants