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
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
InputNumberand hits enter, the resulting value is set toNaN.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