Skip to content
New issue

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

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

Already on GitHub? # to your account

Allow 0 as Input #117

Closed
robinrossow opened this issue Nov 5, 2021 · 2 comments
Closed

Allow 0 as Input #117

robinrossow opened this issue Nov 5, 2021 · 2 comments

Comments

@robinrossow
Copy link

Hey, thanks for the nice library.

I can't seem to figure out how to actually have 0 as the v-model value when I'm initially loading my form.
The input is just an empty string but it will display the 0 value correctly once I've blurred it.

This behavior messes with my validation since it won't allow an empty string but will allow a 0.

Is there any way to correctly display the 0 when loading the input? Thanks!

@kevinongko
Copy link
Owner

kevinongko commented Dec 8, 2021

Hi @robinrossow ,

This is very possible, you can try changing this value in the docs to zero and re-open the html, the value will be zero by default
image
Sorry for the late reply 😄

@kevinongko
Copy link
Owner

Should be fixed in 2.5.0
please try again

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants