angular-ellipsis icon indicating copy to clipboard operation
angular-ellipsis copied to clipboard

Using element.find without jQuery doesn't work correctly

Open schmuli opened this issue 9 years ago • 0 comments

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(...

schmuli avatar Oct 27 '16 09:10 schmuli