Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 73c2dea

Browse files
committed
refactor(dropdown): do not stop event propagation
Fixes #1986 Closes #2076
1 parent 97b0747 commit 73c2dea

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/dropdown/dropdown.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ angular.module('ui.bootstrap.dropdown', [])
2828
}
2929
};
3030

31-
var closeDropdown = function() {
31+
var closeDropdown = function( evt ) {
32+
if (evt && evt.isDefaultPrevented()) {
33+
return;
34+
}
35+
3236
openScope.$apply(function() {
3337
openScope.isOpen = false;
3438
});
@@ -126,7 +130,6 @@ angular.module('ui.bootstrap.dropdown', [])
126130

127131
var toggleDropdown = function(event) {
128132
event.preventDefault();
129-
event.stopPropagation();
130133

131134
if ( !element.hasClass('disabled') && !attrs.disabled ) {
132135
scope.$apply(function() {

0 commit comments

Comments
 (0)