diff --git a/packages/vee-validate/src/utils/common.ts b/packages/vee-validate/src/utils/common.ts index 2aafcc322..eb36eb7f4 100644 --- a/packages/vee-validate/src/utils/common.ts +++ b/packages/vee-validate/src/utils/common.ts @@ -134,7 +134,7 @@ export function keysOf>(record: TRecord) export function injectWithSelf(symbol: InjectionKey, def: T | undefined = undefined): T | undefined { const vm = getCurrentInstance() as any; - return inject(symbol, vm?.provides[symbol as any] || def); + return vm?.provides[symbol as any] || inject(symbol, def); } export function warn(message: string) {