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

input: add support for minlength #30

Closed
mfulton26 opened this issue Feb 24, 2017 · 5 comments
Closed

input: add support for minlength #30

mfulton26 opened this issue Feb 24, 2017 · 5 comments
Assignees
Labels

Comments

@mfulton26
Copy link

I see there is a maxLength property for HTML5's maxlength but I don't see a minLength property for HTML5's minlength. Can this be added?

@mfulton26 mfulton26 changed the title input: add support for minLength input: add support for minlength Feb 24, 2017
@cy6erGn0m
Copy link
Contributor

Is it actually supported? Tried in firefox but it seems that it has no any effect?

@cy6erGn0m
Copy link
Contributor

what you need are pattern and required attributes: http://stackoverflow.com/questions/10281962/is-there-a-minlength-validation-attribute-in-html5

@cy6erGn0m cy6erGn0m self-assigned this Apr 6, 2017
@cy6erGn0m cy6erGn0m added the bug label Apr 6, 2017
@mfulton26
Copy link
Author

I just tried this in Firefox and it does work:

image

https://jsfiddle.net/egkaherL/

The attribute is documented at <input> - HTML | MDN.

@cy6erGn0m
Copy link
Contributor

I see, it just applied on focus lost only this is why I used to be confused.

cy6erGn0m pushed a commit that referenced this issue Apr 26, 2017
@cy6erGn0m
Copy link
Contributor

fix available 0.6.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants