vuetifyjs / vuetify

🐉 Vue Component Framework
https://vuetifyjs.com
MIT License
39.9k stars 6.97k forks source link

[Bug Report][3.7.3] clearing v-number-input with backspace resets to 0 #20607

Open thedaaron opened 4 weeks ago

thedaaron commented 4 weeks ago

Environment

Vuetify Version: 3.7.3 Vue Version: 3.5.12 Browsers: Chrome 129.0.0.0 OS: Mac OS 10.15.7

Steps to reproduce

Type any number for example 3 Delete number by pressing backspace Input rewrites value to 0 (i consider it as not wanted behaviour) Delete zero by pressing backspace (validation is not called and no required message is visible) Click outside of v-number-input and validation is called and required is displayed

Expected Behavior

When i delete value by backspace or delete validation is called immediately on input

Actual Behavior

When i delete value by backspace or delete validation is not called immediately on input

Reproduction Link

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

thedaaron commented 4 weeks ago

Also i cannot call validate by myself, because validate method is missing on v-number-input ref

KaelWD commented 3 weeks ago

validate method is missing on v-number-input ref

It's there, it just won't show up in json.

thedaaron commented 3 weeks ago

@KaelWD You are right, sorry validate it was missing in older version

matt-duffett commented 1 day ago

Have noticed a partial workaround for this is to have a min value on the NumberInput, however this only works when that value is > 0