Skip to content

[Bug Report][3.10.0] VNumberInput - interrupts typing negative decimal values with comma separator #22183

@mihaitom

Description

@mihaitom

Environment

Vuetify Version: 3.10.5
Vue Version: 3.5.22
OS: Windows 10 (current)

Steps to reproduce

  1. Render the component with decimal-separator="," and :precision="2"
  2. Try to enter “-0,1” or “-,01” using the keyboard.
  3. 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

No one assigned

    Labels

    C: VNumberInputT: bugFunctionality that does not work as intended/expectedT: regressionSomething that used to work but we broke

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions