Skip to content
This repository
Browse code

Auto-hide fix

  • Loading branch information...
commit be2b892b00aed9d7150e312fdff7ea905ac27d51 1 parent bb0d36a
Lorenzo Stanco authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  Source/FancySelect.js
2  Source/FancySelect.js
@@ -48,7 +48,7 @@ var FancySelect = new Class({
48 48
 		});
49 49
 		
50 50
 		// Auto-hide the dropdown menu when user clicks outside
51  
-		if (this.options.autoHide) document.body.addEvent('click', function(e) {
  51
+		if (this.options.autoHide) document.addEvent('click', function(e) {
52 52
 			if (!this.shown) return;
53 53
 			var target = document.id(e.target);
54 54
 			var parents = target.getParents().include(target);

0 notes on commit be2b892

Please sign in to comment.
Something went wrong with that request. Please try again.