Skip to content

Commit

Permalink
fix(alert): properly pass $event as local
Browse files Browse the repository at this point in the history
- Change to pass object due to how `&` binding works

Fixes angular-ui#4386
Closes angular-ui#4387
  • Loading branch information
wesleycho authored and jasonaden committed Sep 30, 2015
1 parent 9f6b41c commit 29f79ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/alert/alert.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="alert" ng-class="['alert-' + (type || 'warning'), closeable ? 'alert-dismissible' : null]" role="alert">
<button ng-show="closeable" type="button" class="close" ng-click="close($event)">
<button ng-show="closeable" type="button" class="close" ng-click="close({$event: $event})">
<span aria-hidden="true">&times;</span>
<span class="sr-only">Close</span>
</button>
Expand Down

0 comments on commit 29f79ff

Please sign in to comment.