js/events: do temporarily not respect tab focus

This has been added for keyboard navigation but caused some trouble.
Postponed for now.
This commit is contained in:
Thomas Gelf 2014-05-20 14:05:30 +00:00
parent 79d3f18b66
commit 67144407e6
1 changed files with 2 additions and 1 deletions

View File

@ -190,7 +190,8 @@
dropdownLeave: function () {
var $li = $(this);
setTimeout(function () {
if (! $li.is('li:hover') && ! $li.find(':focus')) {
// TODO: make this behave well together with keyboard navigation
if (! $li.is('li:hover') /*&& ! $li.find('a:focus')*/) {
$li.removeClass('hover');
}
}, 300);