Skip to content

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

Closed
@HawtinZeng

Description

@HawtinZeng

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

Activity

Sun79

Sun79 commented on Sep 20, 2023

@Sun79

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

HawtinZeng commented on Sep 20, 2023

@HawtinZeng
Author

Ok, thank u.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Sun79@HawtinZeng

        Issue actions

          Modifiers _capture doesn't work with el-col of ElementUi · Issue #309 · vuejs/jsx-vue2