Skip to content

Multiple arguments in custom event with a modifier are not passed to handler #10867

Closed
@osasson

Description

@osasson

Version

2.6.10

Reproduction link

https://jsfiddle.net/50wL7mdz/30115/

Steps to reproduce

Add a modifier to one of the event listeners. e.g. @emission.once

What is expected?

That all arguments will be passed to the function

What is actually happening?

Only the first argument is passed


My guess is that it lies in the template compiler which creates a function($event){...} and calling the handler with $event instead of ...arguments?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions