Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report][3.6.5] (VNumberInput): interpretes negative numbers as NaN #19798

Open
guenbakku opened this issue May 13, 2024 · 1 comment
Open
Assignees
Labels
C: VNumberInput T: bug Functionality that does not work as intended/expected

Comments

@guenbakku
Copy link

guenbakku commented May 13, 2024

Environment

Vuetify Version: 3.6.5
Vue Version: 3.4.27
Browsers: Chrome 124.0.0.0
OS: Windows 10

Steps to reproduce

  1. Enter a minus sign (≒hyphen -)
    (Copy&Pasting a minus also causes same behavior)

image

Expected Behavior

The input field should accept negative numbers if the min prop is set to a value less than zero

Actual Behavior

As soon as you enter a minus, the input will be replaced with a literal string of NaN.

Reproduction Link

https://play.vuetifyjs.com/#...

Other comments

This may relate to the following issue:
#2359

@johnleider johnleider added T: bug Functionality that does not work as intended/expected C: VNumberInput and removed S: triage labels May 13, 2024
@kchobantonov
Copy link

The same happens when chars like 'e' or '+' are entered for number is exponent format like 4e+100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VNumberInput T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

No branches or pull requests

4 participants