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

Mask allowing partially filled input to be submitted #774

Open
solis-eduardo opened this issue Jul 23, 2021 · 0 comments
Open

Mask allowing partially filled input to be submitted #774

solis-eduardo opened this issue Jul 23, 2021 · 0 comments

Comments

@solis-eduardo
Copy link

Device

Ubuntu 20.04.2

Browser

Brave: 1.26.77 Chromium: 91.0.4472.164 (Versão oficial) 64 bits
Chrome: 92.0.4515.107 (Versão oficial) 64 bits

jsfiddle

https://jsfiddle.net/ozq6mvj7/

When trying to make a CPF mask, the '0' character doesn't require any filling on submit, while on the docs it is stated:
[...] '0': {pattern: /\d/}, '9': {pattern: /\d/, optional: true}, [...]. Shouldn't the plugin require a minlength on this case?

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

1 participant