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

InputOtp: Unclear behavior when editing the filled component #16404

Open
qwadrox opened this issue Sep 19, 2024 · 0 comments
Open

InputOtp: Unclear behavior when editing the filled component #16404

qwadrox opened this issue Sep 19, 2024 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@qwadrox
Copy link

qwadrox commented Sep 19, 2024

Describe the bug

Discussed in https://github.com/orgs/primefaces/discussions/2713

Originally posted by rishanaznin00 September 19, 2024
We need to press the delete or back button if we want to change a value in the OTP field. Though the input text is highlighted and gives the user the impression that it will be updated if they press any key, that's not what happens.

Environment

Reproducer

No response

Angular version

18

PrimeNG version

17

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

When a field is highlighted/focused, the field should be editable and pass the focus to the next field after edit.
Or the behavior could be something similar: https://ui.shadcn.com/docs/components/input-otp
Once the OTP is filled, the small inputs are not focusable. Only as whole can be edited at the next attempt.

@qwadrox qwadrox added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant