primefaces / primevue

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

Forms: InputNumber inside FormField requires extra keypress for input when validation error is visible #6727

Closed jsodeman closed 1 week ago

jsodeman commented 3 weeks ago

Describe the bug

When an InputNumber is wrapped in a FormField and the validation error is visible, you have to press a key twice to get the key to input into the field. For example pressing "55" to get "5".

If the validation error isn't already visible then the input works as expected.

Reproducer

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

PrimeVue version

4.2.1

Vue version

4.x

Language

ES6

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

Go to the linked stackblitz

type a single digit into the field, the validation error will disappear but the number won't be set

type a second digit, this digit will appear in the input

Expected behavior

No response

tugcekucukoglu commented 1 week ago

Reference issue: https://github.com/primefaces/primevue/issues/506