Skip to content

Commit

Permalink
fix(useVModel): fix compact with 2.7, fix #1745 (#1898)
Browse files Browse the repository at this point in the history
  • Loading branch information
Staremang committed Jul 14, 2022
1 parent 71df646 commit 10f5ae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/useVModel/index.ts
Expand Up @@ -54,7 +54,7 @@ export function useVModel<P extends object, K extends keyof P, Name extends stri

const vm = getCurrentInstance()
// @ts-expect-error mis-alignment with @vue/composition-api
const _emit = emit || vm?.emit || vm?.$emit?.bind(vm) || vm?.proxy?.emit
const _emit = emit || vm?.emit || vm?.$emit?.bind(vm) || vm?.proxy?.$emit?.bind(vm?.proxy)
let event: string | undefined = eventName

if (!key) {
Expand Down

0 comments on commit 10f5ae5

Please sign in to comment.