This repository was archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27.4k
bug(ngAria): ng-click evals attrs.ngClick without passing locals #10442
Comments
There are a few improvements to make for this:
|
There are other problems: Changes to bindings which occur during the event handler installed by aria's ngClick will not update the DOM --- because they don't cause a digest. |
caitp
added a commit
to caitp/angular.js
that referenced
this issue
Dec 12, 2014
…expression Minor improvement to ng-click directive from ngAria. Now, if bindings are updated during the click handler, the DOM will be updated as well. Additionally, the $event object is passed in to the expression via locals, as is done for core event directives. Closes angular#10442
@caitp: I wonder if pressing enter or spacebar should execute the dblclick handler (from an aria point of view). In any case, I don't think it's a good idea to execute both. 👍 for restricting |
caitp
added a commit
to caitp/angular.js
that referenced
this issue
Dec 16, 2014
…expression Minor improvement to ng-click directive from ngAria. Now, if bindings are updated during the click handler, the DOM will be updated as well. Additionally, the $event object is passed in to the expression via locals, as is done for core event directives. Closes angular#10442 Closes angular#10443 Closes angular#10447
High-five for fixing this @caitp, the original PR was intended to be a starting point. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Here's an example of the bug. What's happening is ngAria has this line:
It should probably be:
Can't think of anything else that is an expected expression local that isn't on the scope, but if there are, we'd need to make sure those made it in there as well...
pinging @marcysutton on this one.
The text was updated successfully, but these errors were encountered: