We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Versions
Describe the bug
The placeholder {min} is not replaced when we set 0 at the min_value rule.
To reproduce
<ValidationProvider rules="required|min_value:0" v-slot="{ errors }" name="price"> <input type="number" v-model="price"> <div v-if="errors">{{ errors[0] }}</div> </ValidationProvider>
result:
The price field must be {min} or more
Expected behavior
The price field must be 0 or more
Desktop (please complete the following information):
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered:
9fe7936
Thanks for reporting this, this was a bug in interpolation where the value 0 would be falsy and would cause the interpolation function to ignore it.
Fixed it by checking for its existence rather than its truthiness. Should be up in the next release.
Sorry, something went wrong.
No branches or pull requests
Versions
Describe the bug
The placeholder {min} is not replaced when we set 0 at the min_value rule.
To reproduce
result:
The price field must be {min} or more
Expected behavior
The price field must be 0 or more
Desktop (please complete the following information):
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: