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

fix: #16404 InputOtp: Unclear behavior when editing the filled component #17343

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gianluigitrontini
Copy link

@gianluigitrontini gianluigitrontini commented Jan 10, 2025

This PR removes a line that previously prevented default input behavior when the input reached its maxLength. The restriction allowed only the "Backspace" button to function, requiring users to delete existing values before entering new ones. With this change, users can overwrite the value in each input slot directly, improving usability.

The change is very small and basically removes a line in the onKeyDown method. However if the change is too harsh, would love to learn more.

Defect Fixes

Allow editing inputotp when maxLength is reached, as stated in Issue #16404

Removed line that prevents default input behaviour when the input's length has reached the maxLength, allowing only the "Backspace" button to work, in order to overwrite the value on each slot without having to delete it first.
Copy link

vercel bot commented Jan 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Updated (UTC)
primeng ⬜️ Ignored (Inspect) Visit Preview Jan 10, 2025 9:08am
primeng-v18 ⬜️ Ignored (Inspect) Visit Preview Jan 10, 2025 9:08am

Copy link

vercel bot commented Jan 10, 2025

@gianluigitrontini is attempting to deploy a commit to the primetek Team on Vercel.

A member of the Team first needs to authorize it.

@gianluigitrontini gianluigitrontini changed the title Fixes #16404: InputOtp: Unclear behavior when editing the filled component fix: #16404 InputOtp: Unclear behavior when editing the filled component Jan 10, 2025
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

Successfully merging this pull request may close these issues.

1 participant