Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Fixed issue marcj#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
Expand Up @@ -47,7 +47,7 @@ if(jQuery) (function($) {
.attr('tabindex', parseInt(select.attr('tabindex'))) .attr('tabindex', parseInt(select.attr('tabindex')))
.css('display', 'inline-block') .css('display', 'inline-block')
.bind('focus.selectBox', function() { .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; if( control.hasClass('selectBox-active') ) return;
control.addClass('selectBox-active'); control.addClass('selectBox-active');
select.trigger('focus'); select.trigger('focus');
Expand Down

0 comments on commit 1ee89da

Please sign in to comment.