Skip to content

Custom (non-mouse) events do not work on router-link #1036

Closed
@TremayneChrist

Description

@TremayneChrist

Only mouse events seem to work on router-link due to guardEvent

if (e.button !== 0) return

The button property is only available in MouseEvent I believe. Therefore, using CustomEvent is a no go. For example, using a tap event on mobile devices.

https://jsfiddle.net/qaj7xyx9/1/

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