Skip to content

Bind ui-sref to DOM events other than click #3169

Closed
@Thrilleratplay

Description

@Thrilleratplay

There are occasions when ui-sref will not work as intended as when bound to the click event. A common example is when a navigation menu that will hide when the blur event is triggered. Blur is triggered before click so a ui-sref link will do nothing. The work around is to execute $state.go on mousedown. Other times, I want to highlight on a single click and go to a state on doubleclick.

Could there be an option to override the default binding where mousedown and dblClick are possible triggers for ui-sref?

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