Skip to content

Commit

Permalink
Blur potentially focussed menu entries, to clear "sticky" CSS for :focus
Browse files Browse the repository at this point in the history
  • Loading branch information
rm-km-it committed Mar 20, 2014

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent aed5d06 commit e3628d7
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions bootstrap-hover-dropdown.js
Original file line number Diff line number Diff line change
@@ -53,6 +53,8 @@
return true;
}

$allDropdowns.find(':focus').blur();

if(settings.instantlyCloseOthers === true)
$allDropdowns.removeClass('open');

@@ -68,6 +70,8 @@

// this helps with button groups!
$this.hover(function () {
$allDropdowns.find(':focus').blur();

if(settings.instantlyCloseOthers === true)
$allDropdowns.removeClass('open');

2 changes: 1 addition & 1 deletion bootstrap-hover-dropdown.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e3628d7

Please sign in to comment.