primefaces / primevue

Next Generation Vue UI Component Library
https://primevue.org
MIT License
10.64k stars 1.24k forks source link

InputMask: Value is not unmasked when pasting inside Form #6741

Open 25Das opened 2 weeks ago

25Das commented 2 weeks ago

Describe the bug

When pasting masked value to InputMask with unmask attribute it outputs unmasked value, except if you are using new Form component. The output of $form.[inputname]?.value is the masked value despite unmask attribute true. Typing works without issue.

Reproducer

https://stackblitz.com/edit/p9kvjy?file=src%2FApp.vue,package.json

PrimeVue version

4.2.1

Vue version

3.x

Language

TypeScript

Build / Runtime

Nuxt

Browser(s)

No response

Steps to reproduce the behavior

Open reproducer, copy masked value, paste inside inputs, see result on side.

Expected behavior

Value properly unmasked when using Form.