Skip to content

Commit

Permalink
Fixed issue #40; contributed by DeVore
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed Feb 21, 2012
1 parent 45bf78b commit 1ee89da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jquery.selectBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ if(jQuery) (function($) {
.attr('tabindex', parseInt(select.attr('tabindex')))
.css('display', 'inline-block')
.bind('focus.selectBox', function() {
if( this !== document.activeElement ) $(document.activeElement).blur();
if( this !== document.activeElement && document.body !== document.activeElement ) $(document.activeElement).blur();
if( control.hasClass('selectBox-active') ) return;
control.addClass('selectBox-active');
select.trigger('focus');
Expand Down
Loading

0 comments on commit 1ee89da

Please sign in to comment.