Skip to content

when using withModifiers, the capture modifier is ineffective. #11226

@Aaron-zon

Description

@Aaron-zon

Vue version

3.4.30

Link to minimal reproduction

https://play.vuejs.org/#eNqFUk1vwjAM/SteLilSBQJ2QoC0IQ6btA9tuy07VMVAIE2iJAUk1P8+t6XAEGKXKH7P8Xu2s2cP1rY3ObIBG/rUSRvAY8jtWGiZWeMC7GEZw1aG5YuZyblE56GAuTMZcHrHhU6N9gGmqgsjiFowGsMy4jO54THshQYweqJkuh4cyAoDSBS6EHFUXd4qkULoIqYqvahF8alq77+qf6xF1zV6B40Yvnma2JA75D8EVYr9C8X+bUWiLsv3z1vgVdZdCQ079UhpmBQEzKxKAlIEMKR5jYed8izzzjgWs+DJy1wu2itvNG2m0hMsNZmVpPlmgySvgg0aJ4IlSpntc4UFl2Pc4OkS0/UVfOV3JSbYu0OPboOCHbmQuAWGmp5+vuKO7kcyM7NcUfYN8gO9UXnpsU57zPWMbJ/lVW6fqv8l9eLLT3cBtW+aKo3W66r7pm82udH6yW6/fd/sgRW/e2rmdg==

Steps to reproduce

Clicking on Click! in the screen will trigger an alert popup, following the event bubbling order: el3 -> el2 -> el1.
In el2's onClick, use withModifiers and add the modifier ['capture']. The expected correct order should be: el2 -> el3 -> el1.
However, the current order is: el3 -> el2 -> el1.

What is expected?

the order of the alert popups is: el2 -> el3 -> el1.

What is actually happening?

The current order of the alert popups is: el3 -> el2 -> el1.
The capture modifier did not take effect.

System Info

No response

Any additional comments?

No response

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

    Issue actions