Skip to content

InputNumber can return NaN #6743

Description

@adamgreenhall

Environment

latest - see repro

Is this bug related to Nuxt or Vue?

Vue

Package

v4.x

Version

latest

Reproduction

https://play.ui.nuxt.com/#eNo9jzFvhDAMhf/KU5YDqYXreuKqdujQha1bFqCGQwpOBE5aCfHf6wP1puTZfp+fV/MeQpEimYuplm4eg2AhiQGu4eFqjSzWvFoep+BnwYqZemzoZz/hpLaTZcud50WQcL13s3NuuY/cyegZ3U0xlOVYLQP3Qe+ocH7IUpEaF+kJ41I39b/M1bxZrsoji25WITQF1wipAqqwP8AHC82wprAGI0NuhNb/oiXnfyAeAwkaKBs7efeWh7n6+uQQpY5Tq4j0PPlvcnpsUtTbEVnV8dHSZREKWjgXL9aUSqjKRySz/QH1Y2y8

Description

If the user enters "." or "-" into an InputNumber and hits enter, the resulting value is set to NaN.

NaN values cause all sorts of wacky problems - if the user does this, maybe just revert to the previous value instead?

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageAwaiting initial review and prioritization

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions