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

Can't accept input type different from "text" #152

Open
saiballo opened this issue Oct 11, 2024 · 0 comments
Open

Can't accept input type different from "text" #152

saiballo opened this issue Oct 11, 2024 · 0 comments

Comments

@saiballo
Copy link

If I use an input type "number" with this validation rules:

.addField("#myinput", [ { "rule": "required", }, { "rule": "number" } ],

the rule "number" does not work. If I try to insert "abc" the error message is "input required" and not "only numbers allowed"

If I change type number in text all runs smoothly

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