Skip to content

Commit

Permalink
fix(dropdown): keep input field focus if it's an menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
lubber-de authored and Sean committed Aug 27, 2019
1 parent 909ac8d commit 1df7676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -1296,7 +1296,7 @@ $.fn.dropdown = function(parameters) {
isBubbledEvent = ($subMenu.find($target).length > 0)
;
// prevents IE11 bug where menu receives focus even though `tabindex=-1`
if (!module.has.search() || !document.activeElement.isEqualNode($search[0])) {
if (document.activeElement.tagName.toLowerCase() !== 'input') {
$(document.activeElement).blur();
}
if(!isBubbledEvent && (!hasSubMenu || settings.allowCategorySelection)) {
Expand Down

0 comments on commit 1df7676

Please sign in to comment.