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

Commit

Permalink
feat(dropdownToggle): disable dropdown when it has the disabled class
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjoSolutions authored and pkozlowski-opensource committed Oct 11, 2013
1 parent 78a1e9d commit 104bdd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dropdownToggle/dropdownToggle.js
Expand Up @@ -31,7 +31,7 @@ angular.module('ui.bootstrap.dropdownToggle', []).directive('dropdownToggle', ['
closeMenu();
}

if (!elementWasOpen) {
if (!elementWasOpen && !element.hasClass('disabled') && !element.prop('disabled')) {
element.parent().addClass('open');
openElement = element;
closeMenu = function (event) {
Expand All @@ -49,4 +49,4 @@ angular.module('ui.bootstrap.dropdownToggle', []).directive('dropdownToggle', ['
});
}
};
}]);
}]);

0 comments on commit 104bdd1

Please sign in to comment.