Skip to content

Any experience with vue-flatpickr? #3276

Answered by logaretm
lucianobosco asked this question in Q&A
Discussion options

You must be logged in to vote

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();
});

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@logaretm
Comment options

@lucianobosco
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by logaretm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants