Skip to content

Commit

Permalink
Repair tabbing out & improved other-focus detection
Browse files Browse the repository at this point in the history
Previous commit broke the tabbing behavior, sorry.
  • Loading branch information
Frique committed Jul 18, 2013
1 parent be95ba8 commit 43a2e0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.minimalect.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@
else if(m.input.val()){
m.selectChoice(m.items.not("."+m.options.class_group+", ."+m.options.class_empty).filter(':visible').first());
}
m.hideChoices(m.wrapper);
break;
// escape
case 27:
Expand All @@ -163,7 +162,8 @@
});

// When tabbing out of minimalect, close it
$('input, select, button, textarea, a').not(m.input).on('focus', function(){
$('*').not(m.input).on('focus', function(){
console.log('other focus');
m.hideChoices(m.wrapper);
});

Expand Down

0 comments on commit 43a2e0e

Please sign in to comment.