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 Report][3.7.7] Max character error message in text input is never shown #20910

Closed
michalk-mg opened this issue Jan 23, 2025 · 3 comments
Closed
Labels
layer 8 issue You're doing it wrong

Comments

@michalk-mg
Copy link

Environment

Vuetify Version: 3.7.7
Vue Version: 3.5.13
Browsers: Edge 132.0.0.0
OS: Windows 10

Steps to reproduce

  1. Go to the link (which is the official example).
  2. Remove all characters from first input text field.
  3. Observe required rule working and showing "Required" error message.
  4. Type in 20 characters in the first input text field.
  5. Try to type in another character.
  6. Observe NO error messages.

Expected Behavior

Error message ("Max 20 characters") should show on input attempt (type or paste).

Actual Behavior

No message is shown.

Reproduction Link

https://play.vuetifyjs.com/#...

@jakubmatisak
Copy link

Change condition to counter: value => value.length < 20 || 'Max 20 characters',

@michalk-mg
Copy link
Author

michalk-mg commented Jan 23, 2025

Change condition to counter: value => value.length < 20 || 'Max 20 characters',

Then the error message is shown on reaching 20th character, which is still incorrect.

20 characters in the input should still meet the rule. Only the attempt to go over should trigger the error message.

@KaelWD
Copy link
Member

KaelWD commented Jan 23, 2025

You have maxlength="20" which prevents a 21st character from even being entered.

@KaelWD KaelWD closed this as not planned Won't fix, can't repro, duplicate, stale Jan 23, 2025
@KaelWD KaelWD added the layer 8 issue You're doing it wrong label Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
layer 8 issue You're doing it wrong
Projects
None yet
Development

No branches or pull requests

3 participants