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.7.3] clearing v-number-input with backspace resets to 0 #20607

Closed
thedaaron opened this issue Oct 22, 2024 · 4 comments · Fixed by #20729
Closed

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

thedaaron opened this issue Oct 22, 2024 · 4 comments · Fixed by #20729
Labels
C: VNumberInput T: bug Functionality that does not work as intended/expected

Comments

@thedaaron
Copy link

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
Copy link
Author

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

@KaelWD
Copy link
Member

KaelWD commented Oct 25, 2024

validate method is missing on v-number-input ref

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

@KaelWD KaelWD changed the title [Bug Report][3.7.3] v-number-input: does not call validate on delete value [Bug Report][3.7.3] clearing v-number-input with backspace resets to 0 Oct 25, 2024
@KaelWD KaelWD added T: bug Functionality that does not work as intended/expected C: VNumberInput labels Oct 25, 2024
@thedaaron
Copy link
Author

thedaaron commented Oct 29, 2024

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

@matt-duffett
Copy link

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

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

Successfully merging a pull request may close this issue.

3 participants