Skip to content

Check pristine flags in component template #3297

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

You must be logged in to vote

Never mind, just too tired and trying to re-invent the wheel.
I've realized that it can be easily done by using pristine prop within validationProvider since the warning is directly related to a multi-select.
So this is the way:

<ValidationProvider vid="locale" v-slot="{ pristine }">
    <multiselect
        :options="opt_locales"
        v-model="resource.profile.locale">
    </multiselect>
    <div v-if="!pristine">My warning message</div>
</ValidationProvider>

Feel free to close this discussion.

Replies: 1 comment

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
1 participant