Skip to content

Commit 8d07ef2

Browse files
committed
Merge pull request #11 from Kreeg/master
Click on document does not close the selectbox
2 parents da25383 + 85d77c0 commit 8d07ef2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/SelectBox.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
self = this;
2626

2727
$(document).click(function(e) {
28-
if($(e.target).parents(".customSelect").get(0) === null) {
28+
if($(e.target).parents(".customSelect").size() === 0) {
2929
self.close();
3030
}
3131
});
@@ -389,4 +389,4 @@
389389

390390
init();
391391
};
392-
})(jQuery);
392+
})(jQuery);

0 commit comments

Comments
 (0)