Skip to content

Reset Form v4.x with ionic inputs #3099

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

You must be logged in to vote

@amiraiouaz After investigation, it looks like Ionic input components emit an update:modelValue event when the value is changed via props which doesn't make sense.

it might be worth it for you to report this behavior to the ionic team, specifically emitting an update:modelValue when the modelValue prop is changed externally because there is nothing to sync.

This is not a vee-validate issue and no reliable changes can be introduced to fix it. As a workaround disabling the validateOnModelUpdate should do the trick.

Workaround demo: https://codesandbox.io/s/purple-rgb-gvnc8?file=/src/views/Home.vue

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@logaretm
Comment options

Comment options

You must be logged in to vote
1 reply
@amiraiouaz
Comment options

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