-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
Status: Needs TriageIssue will be reviewed by Core Team and a relevant label will be added as soon as possibleIssue will be reviewed by Core Team and a relevant label will be added as soon as possible
Description
Describe the bug
When using an InputNumber in a Form with FormValue with currency formatting, pressing meta+backspace leads to NaN in the input field.
<Form>
<FormField name="price">
<InputNumber mode="currency" currency="EUR" />
</FormField>
</Form>Pull Request Link
Reason for not contributing a PR
- Lack of time
- Unsure how to implement the fix/feature
- Difficulty understanding the codebase
- Other
Other Reason
No response
Reproducer
https://stackblitz.com/edit/mnu5mtyk?file=src%2FApp.vue
Environment
MacOS
Vue version
3.2.45
PrimeVue version
4.5.4
Node version
No response
Browser(s)
Chrome
Steps to reproduce the behavior
- Click on the input field
- Insert any number > 0
- Press meta+backspace
Expected behavior
The input shows nothing (or 0 when allow-empty=false)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Status: Needs TriageIssue will be reviewed by Core Team and a relevant label will be added as soon as possibleIssue will be reviewed by Core Team and a relevant label will be added as soon as possible