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: Pasting adds an extra character #6351

Closed
mergehez opened this issue Sep 6, 2024 · 0 comments
Closed

InputOtp: Pasting adds an extra character #6351

mergehez opened this issue Sep 6, 2024 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@mergehez
Copy link
Contributor

mergehez commented Sep 6, 2024

Describe the bug

When you paste some text longer than "length", "length + 1" characters are pasted.

Reproducer

no need

PrimeVue version

4.0.5

Vue version

4.x

Language

ALL

Build / Runtime

Vue CLI App

Browser(s)

Chrome 127.0.6533.119

Steps to reproduce the behavior

you can try it really quickly here: https://primevue.org/inputotp/

  1. Paste "abcdef"
    image
  2. remove the letter from the last box:
    image
  3. when you continue removing, it works ok
    image

Expected behavior

it shouldn't add the extra character

@mergehez mergehez 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 6, 2024
@tugcekucukoglu tugcekucukoglu 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 Sep 11, 2024
@tugcekucukoglu tugcekucukoglu added this to the 4.0.7 milestone Sep 11, 2024
@tugcekucukoglu tugcekucukoglu self-assigned this Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants