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: Does not work as expected with reactive forms #15225

Closed
yossef7525 opened this issue Apr 7, 2024 · 1 comment
Closed

inputOtp: Does not work as expected with reactive forms #15225

yossef7525 opened this issue Apr 7, 2024 · 1 comment
Labels
Resolution: Invalid Issue or pull request is not valid in the latest version

Comments

@yossef7525
Copy link

yossef7525 commented Apr 7, 2024

inputOtp: Does not work as expected with reactive forms

The reaction I expect after filling the first character, that the input will automatically move in focus mode to the second position, unfortunately when I wrap the input with formControl this does not happen, the focus remains in the first position.

Environment

  • win 11
  • chrome 123.0
  • angular 17

Reproducer

stackblitz

Angular version

17

PrimeNG version

17

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20

Browser(s)

chrome 123

@yossef7525 yossef7525 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Apr 7, 2024
@yarikwest
Copy link

while using binding, you should do it in brackets: [formControl]="otp"

@mehmetcetin01140 mehmetcetin01140 added Resolution: Invalid Issue or pull request is not valid in the latest version and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Invalid Issue or pull request is not valid in the latest version
Projects
None yet
Development

No branches or pull requests

3 participants