Skip to content

Using element.find without jQuery doesn't work correctly #75

@schmuli

Description

@schmuli

This issue was introduced by the changes in PR #69 on line 156.

The find method is used to locate the span for the custom click action. However, as mentioned in the AngularJS documentation, the find method in jqLite is limited to only tag names, and therefore this doesn't work anymore for apps that don't load the full jQuery.

A way to fix this would be to use querySelector:

angular.element(element[0].querySelector('span.angular-ellipsis-append'))
    .bind(...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions