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

InputNumber : Request to Disable Ctrl+V Input in Component when readonly is set to true #5726

Closed
ssccnnc opened this issue May 13, 2024 · 0 comments · Fixed by #5730
Closed
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@ssccnnc
Copy link

ssccnnc commented May 13, 2024

Describe the bug

When the readonly property of the InputNumber component is set to true, it currently prevents input via normal keyboard entry. However, if you click to focus the input and then use ctrl + v to paste, the previously copied numerical value from the clipboard gets pasted and becomes input-enabled. We would like to request that ctrl + v input be disabled in this scenario.

Reproducer

https://stackblitz.com/edit/primevue-create-vue-typescript-issue-template-wer8tb?file=src%2FApp.vue

PrimeVue version

3.51.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@ssccnnc ssccnnc 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 13, 2024
@tugcekucukoglu tugcekucukoglu added this to the 3.53.0 milestone May 16, 2024
@tugcekucukoglu tugcekucukoglu added Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add 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 added a commit that referenced this issue May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants