For each td element in a table I have an attached ng-click. Here is the (simplified) html for each table cell:
-
Changing:
angular.element(event.target)
to:
angular.element(event.currentTarget)
fixed my issue.
It seems to me using event.currentTarget is preferred to event.target in the majority of usage cases.
- 热议问题