Any experience with vue-flatpickr? #3276
-
I'm using vee-validate V3. When v-model is hydrated via axios, the pristine flag from validationObserver is set to true. I'm trying to use
Any advice will be really appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Feel free to create a sample on codesandbox and I will take a look. |
Beta Was this translation helpful? Give feedback.
-
@logaretm this is a basic sample: https://jsfiddle.net/luchorengo/cL9dtvym/21/ |
Beta Was this translation helpful? Give feedback.
-
Copied the answer from a reply: Trying using requestAnimationFrame instead of $nextTick to reset the form, $nextTick doesn't always work well with flushing the VNode UI updates with libraries like these this.setDate();
requestAnimationFrame(() => {
this.$refs.observer.reset();
}); |
Beta Was this translation helpful? Give feedback.
Copied the answer from a reply:
Trying using requestAnimationFrame instead of $nextTick to reset the form, $nextTick doesn't always work well with flushing the VNode UI updates with libraries like these