Permalink
Browse files

Auto-hide fix

  • Loading branch information...
1 parent bb0d36a commit be2b892b00aed9d7150e312fdff7ea905ac27d51 @lorenzos committed Mar 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/FancySelect.js
View
@@ -48,7 +48,7 @@ var FancySelect = new Class({
});
// Auto-hide the dropdown menu when user clicks outside
- if (this.options.autoHide) document.body.addEvent('click', function(e) {
+ if (this.options.autoHide) document.addEvent('click', function(e) {
if (!this.shown) return;
var target = document.id(e.target);
var parents = target.getParents().include(target);

0 comments on commit be2b892

Please sign in to comment.