Comments (3)
Could be that the validation parsing is treating the colons as rule params, I will look into it.
a workaround is to attach the field manually (keep the directive on the element):
this.$validator.attach('proposedTime', [
{ name: 'required' },
{ name: 'date_format', params: ['HH:mm'] }
]);
Here is a fiddle: https://jsfiddle.net/7jhf3qyj/
that way you just overridden the rules for that field, I will try to make it work like you originally intended.
from vee-validate.
Thanks for the workaround!
from vee-validate.
fixed by #121
from vee-validate.
Related Issues (20)
- Typo in .et translation of vee-validate .et locale
- v-model on <Field> does not work in "@vue/compat" mode (vue 3.x, vee: 4.x) HOT 1
- Configure and validateOnBlur not working with primeVue HOT 2
- useResetForm should take an optional second parameter of ResetFormOpts
- `.label()` method is not available with zod
- Property defineField does not exist in useForm()
- Validating with Zod not applying the `.transform()` method for `useField()` HOT 1
- `configure()` doesnt work to turn off validateOnChange, validateOnInput, validateOnModelUpdate HOT 1
- How to Dynamic Field
- How can I usefieldarray to dynamically reflect validation?
- How can I `useFieldArray` to dynamically reflect validation?
- The types for the errors when using useFieldArray are incorrect
- Issue with Validation in Checkbox Group Implementation
- useFieldArray's remove method is triggered twice when removing many fields consecutively
- Custom component does not trigger change event on form HOT 1
- Ability to customize interpolation prefix/suffix HOT 1
- Force resetting a form should also force reset initial values instead of merging
- Components. Yup. It is not possible to set the default value via `.default()`. I can't delete fields using `.strip()` HOT 2
- Unable to display a label when using vscode-dropdown with vee-validate Field
- I am using vee-validation but my initial values not geeting update HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vee-validate.