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

Commit

Permalink
refactor(dropdown): do not stop event propagation
Browse files Browse the repository at this point in the history
Fixes #1986
Closes #2076
  • Loading branch information
bekos committed Apr 18, 2014
1 parent 97b0747 commit 73c2dea
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/dropdown/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ angular.module('ui.bootstrap.dropdown', [])
}
};

var closeDropdown = function() {
var closeDropdown = function( evt ) {
if (evt && evt.isDefaultPrevented()) {
return;
}

openScope.$apply(function() {
openScope.isOpen = false;
});
Expand Down Expand Up @@ -126,7 +130,6 @@ angular.module('ui.bootstrap.dropdown', [])

var toggleDropdown = function(event) {
event.preventDefault();
event.stopPropagation();

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

0 comments on commit 73c2dea

Please sign in to comment.