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 = > backspace key doesn't work @ Template #15200

Closed
mchuc opened this issue Mar 29, 2024 · 0 comments · Fixed by #15203
Closed

InputOtp = > backspace key doesn't work @ Template #15200

mchuc opened this issue Mar 29, 2024 · 0 comments · Fixed by #15203
Assignees
Labels
Component: Documentation Issue or pull request is related to Documentation Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@mchuc
Copy link

mchuc commented Mar 29, 2024

Describe the bug

When I use a template with dashes at the bottom, as on the project's website, the numbers cannot be deleted when I press backspace.

Environment

windows

Reproducer

No response

Angular version

17.2.3

PrimeNG version

17.12.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20.9.0

Browser(s)

Chrome / latest

Steps to reproduce the behavior

use code:

<p-inputOtp [(ngModel)]="value">
    <ng-template pTemplate="input" let-token let-events="events">
        <input pInputText class="custom-otp-input" (input)="events.input($event)" type="text" [attr.value]="token" [maxLength]="1" />
    </ng-template>
</p-inputOtp>

Expected behavior

reaction to backspace as to any other key

@mchuc mchuc added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Mar 29, 2024
@mehmetcetin01140 mehmetcetin01140 self-assigned this Mar 29, 2024
@mehmetcetin01140 mehmetcetin01140 added this to the 17.13.0 milestone Mar 29, 2024
@mehmetcetin01140 mehmetcetin01140 added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Mar 29, 2024
@cetincakiroglu cetincakiroglu added the Component: Documentation Issue or pull request is related to Documentation label Apr 1, 2024
cetincakiroglu added a commit that referenced this issue Apr 1, 2024
Fixed #15200 - backspace key doesn't work @ Template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Documentation Issue or pull request is related to Documentation Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants