Skip to content

Commit 21ff754

Browse files
committed
fix($ionicPopup): make it work if jquery is included
Closes #1027
1 parent 6b5083b commit 21ff754

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/ext/angular/src/directive/ionicPopup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ angular.module('ionic.ui.popup', [])
4747
var result = button.onTap && button.onTap(event);
4848

4949
// A way to return false
50-
if(event.defaultPrevented) {
50+
if((event.originalEvent || event).defaultPrevented) {
5151
return $scope.$onClose({button: button, result: false, event: event });
5252
}
5353

0 commit comments

Comments
 (0)