Skip to content

Commit 0fcad6f

Browse files
author
Duc Tri Le
committed
Merge pull request jquerytools#497 from brewt/dev
Fix for clicking on the next/prev month button hides calendar
2 parents 5127118 + d37be46 commit 0fcad6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dateinput/dateinput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@
407407
$(document).on("click.d", function(e) {
408408
var el = e.target;
409409

410-
if (!$(el).parents("#" + css.root).length && el != input[0] && (!trigger || el != trigger[0])) {
410+
if (!(el.id == css.root || $(el).parents("#" + css.root).length) && el != input[0] && (!trigger || el != trigger[0])) {
411411
self.hide(e);
412412
}
413413

0 commit comments

Comments
 (0)