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

[BUG] min validator for strings not consistent #88

Open
manstie opened this issue Aug 7, 2022 · 2 comments
Open

[BUG] min validator for strings not consistent #88

manstie opened this issue Aug 7, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@manstie
Copy link

manstie commented Aug 7, 2022

Describe the bug
The min validator can not be used for a text field where you want n characters and they input a number > n.

To Reproduce
Steps to reproduce the behavior:

  1. Add min(8) validator to a text input
  2. Type in 9
  3. Field is valid

Expected behavior
I believe a specific minLength / maxLength validator is required for this situation, as I want the validator to only validate the number of characters in the text and not the potential number value.

@manstie manstie added the bug Something isn't working label Aug 7, 2022
@manstie manstie changed the title [BUG] [BUG] min validator for strings not consistent Aug 7, 2022
@chjlsch
Copy link

chjlsch commented Nov 8, 2022

I think you ment 2. Type in 7. But i beleave this bug has been fixed, it works for me (2.3.1).

@manstie
Copy link
Author

manstie commented Nov 9, 2022

I think you ment 2. Type in 7. But i beleave this bug has been fixed, it works for me (2.3.1).

No, I want to validate the length of the string in a text field, not the numerical value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants