Skip to content

Commit

Permalink
fix(dropdown): fix for menu bubbling
Browse files Browse the repository at this point in the history
Introduced by #189
  • Loading branch information
lubber-de authored and Sean committed Nov 12, 2018
1 parent cc7f428 commit 0620309
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -1268,7 +1268,9 @@ $.fn.dropdown = function(parameters) {
isBubbledEvent = ($subMenu.find($target).length > 0)
;
// prevents IE11 bug where menu receives focus even though `tabindex=-1`
$(document.activeElement).blur();
if (!module.has.search() || !document.activeElement.isEqualNode($search[0])) {
$(document.activeElement).blur();
}
if(!isBubbledEvent && (!hasSubMenu || settings.allowCategorySelection)) {
if(module.is.searchSelection()) {
if(settings.allowAdditions) {
Expand Down

0 comments on commit 0620309

Please sign in to comment.