Permalink
Browse files

Merge pull request #497 from brewt/dev

Fix for clicking on the next/prev month button hides calendar
  • Loading branch information...
2 parents 5127118 + d37be46 commit 0fcad6fbb4b61770ad03e3fd459a3897464cc051 @duclet duclet committed Mar 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/dateinput/dateinput.js
@@ -407,7 +407,7 @@
$(document).on("click.d", function(e) {
var el = e.target;
- if (!$(el).parents("#" + css.root).length && el != input[0] && (!trigger || el != trigger[0])) {
+ if (!(el.id == css.root || $(el).parents("#" + css.root).length) && el != input[0] && (!trigger || el != trigger[0])) {
self.hide(e);
}

0 comments on commit 0fcad6f

Please sign in to comment.