Skip to content

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

@akshayaqburst

Description

@akshayaqburst

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugIssue contains a bug related to a specific component. Something about the component is not working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions