Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(useVModel): fix compact with 2.7, fix #1745 #1898

Merged
merged 1 commit into from Jul 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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