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

Differences between vue3 click events and vue2.7 click events #10654

Closed
jasperdaiyile opened this issue Apr 7, 2024 · 1 comment
Closed

Differences between vue3 click events and vue2.7 click events #10654

jasperdaiyile opened this issue Apr 7, 2024 · 1 comment

Comments

@jasperdaiyile
Copy link

Vue version

2.7

Link to minimal reproduction

www

Steps to reproduce

function getDialogInfoMap(currentDialogType: DialogType) {
dialog1: {
confirm: () => handle(true),
cancel: () => handle(false),
},
dialog2: {
confirm: () => xxxxxx(),
cancel: () => xxxxxxxxx(),
},
}

In the above code, the click event through the template, why vue3 can be triggered, vue2.7 can not be triggered

What is expected?

vue2.7 also triggers

What is actually happening?

function getDialogInfoMap(currentDialogType: DialogType) {
dialog1: {
confirm: () => handle(true),
cancel: () => handle(false),
},
dialog2: {
confirm: () => xxxxxx(),
cancel: () => xxxxxxxxx(),
},
}

In the above code, the click event through the template, why vue3 can be triggered, vue2.7 can not be triggered

System Info

No response

Any additional comments?

No response

@jasperdaiyile jasperdaiyile changed the title vue3点击事件和vue2.7点击事件的不同 Differences between vue3 click events and vue2.7 click events Apr 7, 2024
@Justineo
Copy link
Member

Justineo commented Apr 7, 2024

Please provide a runnable reproduction.

@Justineo Justineo closed this as completed Apr 7, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Apr 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants