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

Modifiers _capture doesn't work with el-col of ElementUi #309

Closed
HawtinZeng opened this issue Jul 16, 2023 · 2 comments
Closed

Modifiers _capture doesn't work with el-col of ElementUi #309

HawtinZeng opened this issue Jul 16, 2023 · 2 comments

Comments

@HawtinZeng
Copy link

HawtinZeng commented Jul 16, 2023

image
I want to do the outer click event handler before the inner click, so I use _capture modifiers, but I found vOn_click_native_capture can' trigger the click event, what should I do??
The online playground is here: https://stackblitz.com/edit/vue2-vue-cli-ewhdaa?file=src%2Fcomponents%2FOuter.vue

@Sun79
Copy link

Sun79 commented Sep 20, 2023

You can temporarily work around this bug using the following code:

<el-col {...{ nativeOn: { '!click': () => {} } }}></el-col>

Or wait for this pull request to be merged: #303.

@HawtinZeng
Copy link
Author

Ok, thank u.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants