primevue
primevue copied to clipboard
InputOTP: cannot paste with integer-only mode
Describe the bug
Whenever InputOTP uses integer-only
mode like <InputOtp v-model="code" integer-only />
, pasting the code with shortcut ctrl + v
doesn't work. Strangely, pasting with right click and paste work.
Can also be observed in documentation example -> https://primevue.org/inputotp/#integeronly
Reproducer
https://primevue.org/inputotp/#integeronly
PrimeVue version
3.52.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Nuxt
Browser(s)
No response
Steps to reproduce the behavior
- Open reproduction / documentation example
- Code code: 1234
- Try to paste code with shortcut
CTRL+V
Expected behavior
No response