Skip to content
This repository has been archived by the owner on Dec 25, 2017. It is now read-only.

Validation rule removes 0 from textfield. #195

Closed
BrainOverfloW opened this issue Apr 20, 2016 · 1 comment
Closed

Validation rule removes 0 from textfield. #195

BrainOverfloW opened this issue Apr 20, 2016 · 1 comment
Labels

Comments

@BrainOverfloW
Copy link

vue & vue-validator version

1.0.17, 2.0.0-beta.1

I've found a bug in the validation of fields containing the value 0. Once you add a validator rule to that field, the contents of the field disappears.

Reproduction Link: https://jsfiddle.net/g813xymd/

Steps to reproduce

Add v-validator to a textfield bound to a v-model with the value of 0

What is Expected?

The field should show 0

What is actually happening?

The field is empty

@BrainOverfloW
Copy link
Author

Thanks for the quick fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants