Skip to content

Commit

Permalink
fix: support optionMergeStrategies, closes vuelidate#789 (vuelidate#1049
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Akryum authored May 1, 2022
1 parent 8502d1a commit dc307c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vuelidate/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { watch, computed, getCurrentInstance, onBeforeMount, onBeforeUnmount, isRef, ref, reactive, isVue3 } from 'vue-demi'
import { watch, computed, getCurrentInstance, onBeforeMount, onBeforeUnmount, isRef, ref, reactive } from 'vue-demi'
import { isFunction, unwrap, isProxy } from './utils'
import { setValidations } from './core'
import ResultsStorage from './storage'
Expand Down Expand Up @@ -37,7 +37,7 @@ export function useVuelidate (validations, state, globalConfig = {}) {
const instance = currentVueInstance || getCurrentInstance()

const componentOptions = instance
? (isVue3 ? instance.type : instance.proxy.$options)
? instance.proxy.$options
: {}
// if there is no registration name, add one.
if (!$registerAs && instance) {
Expand Down

0 comments on commit dc307c9

Please sign in to comment.