-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Open
Labels
C: VNumberInputT: bugFunctionality that does not work as intended/expectedFunctionality that does not work as intended/expectedT: regressionSomething that used to work but we brokeSomething that used to work but we broke
Description
Environment
Vuetify Version: 3.10.5
Vue Version: 3.5.22
OS: Windows 10 (current)
Steps to reproduce
- Render the component with decimal-separator="," and :precision="2"
- Try to enter “-0,1” or “-,01” using the keyboard.
- Observe that the input is replaced by “0”.
Expected Behavior
Users should be able to enter negative decimal numbers with the comma format (e.g., “-0,1” or “-,01”), and the component should correctly display the entered value.
Actual Behavior
When using the v-number-input component with decimal-separator="," (comma), entering negative decimal values such as “-0,1” or “-,01” via the keyboard does not work as expected:
Instead of displaying the entered value, the field will show “0”.
Reproduction Link
https://play.vuetifyjs.com/#...
Other comments
With decimal-separator=".", entering “-0.1” or “-.01” works correctly.
Images
Metadata
Metadata
Assignees
Labels
C: VNumberInputT: bugFunctionality that does not work as intended/expectedFunctionality that does not work as intended/expectedT: regressionSomething that used to work but we brokeSomething that used to work but we broke