Skip to content

Commit

Permalink
fix: resolve dropdown menu disappearing for foundation#11410
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlo Duff committed Jul 17, 2018
1 parent ae3c7f5 commit ac88dac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/foundation.dropdownMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ class DropdownMenu extends Plugin {
hasSub = $elem.hasClass(parClass);
if (hasSub && _this.options.autoclose) {
if ($elem.attr('data-is-click') === 'true' && _this.options.clickOpen) { return false; }
// Check for hovering over input dropdown options
if(e.relatedTarget === null && document.hasFocus && document.hasFocus()) {
return false;
}

clearTimeout($elem.data('_delay'));
$elem.data('_delay', setTimeout(function() {
Expand Down

0 comments on commit ac88dac

Please # to comment.