Skip to content

Commit

Permalink
IE9,IE8 no longer loses focus on scrollbar click.
Browse files Browse the repository at this point in the history
  • Loading branch information
owenallenaz committed Nov 15, 2011
1 parent 773a87e commit ed921d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jquery.dropkick-1.0.0.js
Expand Up @@ -142,6 +142,11 @@
$dk.bind('focus.dropkick', function (e) {
$dk.addClass('dk_focus');
}).bind('blur.dropkick', function (e) {
/*** IE moves focus from the .dk_container to .dk_options on scroll bar click ***/
if ($(document.activeElement).closest($dk).length > 0) {
$dk.focus();
return false;
}
$dk.removeClass('dk_open dk_focus');
});

Expand Down
1 change: 1 addition & 0 deletions readme.md
Expand Up @@ -6,6 +6,7 @@ Bug Fixes
-
* Allows selects with the same name to exist on the page
* Only selects with a specific class `.dk_fouc` will be hidden off the page. This way you can dropkick specific selects leaving other selects untouched.
* IE8 - IE9 clicking scroll bar no longer causes dropdown to lose focus.

Planned Future Additions
-
Expand Down

1 comment on commit ed921d0

@GabeHarris
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worked well for me, thanks!

Please sign in to comment.