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

allowOverMax is NOT working #156

Open
SashkaDev opened this issue Jan 11, 2021 · 2 comments
Open

allowOverMax is NOT working #156

SashkaDev opened this issue Jan 11, 2021 · 2 comments

Comments

@SashkaDev
Copy link

This is the only reference in code:
if (options.customMaxAttribute && !options.allowOverMax) {
var custom = currentInput.attr(options.customMaxAttribute);
if (!max || custom < max) {
max = custom;
}
}
It only replace the maxlength attribute for the custom attribute name.
I think that the usefull thing is that the maxlength is only informative when you set allowOverMax to true.

@ekinox
Copy link

ekinox commented May 31, 2021

it has never been working for me either.

@mimo84
Copy link
Owner

mimo84 commented May 31, 2021

Unless you remove the native form validation you can't use the form validation attributes on inputs (such as maxlength) because the browser is going to stop you from inputting more values.
See this example: https://jsbin.com/mijanixivi/edit?html,output

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