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: Able to paste otp in readonly and disabled modes. #5740

Closed
akshayaqburst opened this issue May 15, 2024 · 0 comments
Closed

InputOtp: Able to paste otp in readonly and disabled modes. #5740

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

Comments

@akshayaqburst
Copy link
Contributor

Describe the bug

InputOtp: Able to paste otp in readonly and disabled modes.

Reproducer

https://stackblitz.com/edit/pq6v3u?file=src%2FApp.vue

PrimeVue version

3.52.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

  1. Go to https://primevue.org/inputotp/
  2. Add disabled or readonly prop to inputotp field.
  3. Try copy and paste numbers.
  4. Able to paste the numbers to the disabled field.

Expected behavior

Should not be able to paste numbers to the disabled field

@akshayaqburst akshayaqburst added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label May 15, 2024
akshayaqburst pushed a commit to qburst/primevue_qb_6 that referenced this issue May 15, 2024
akshayaqburst pushed a commit to qburst/primevue_qb_6 that referenced this issue May 15, 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 May 16, 2024
@tugcekucukoglu tugcekucukoglu added this to the 3.53.0 milestone May 16, 2024
tugcekucukoglu added a commit that referenced this issue May 16, 2024
fix: primevue #5740, InputOtp: Able to paste otp in readonly and disabled modes
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