Demo
Reproduced in Chrome 18 on Ubuntu, Chrome Mac, and others.
Just double-click the link, then choose a date. The datepicker becomes unclosable. How do I fix this?
I wanted to check if the calendar was currently open before showing it again, but I can't see a property for that.
HTML
<a href="#">double click me</a><input/>
JS
$('input').datepicker();
$('a').click(function() {
$('input').datepicker('show');
});
It seems to be a problem with the default fade animation. If you open it twice before the fade completes, the problem occurs. Setting duration
to 0
fixes the problem, but I kind of like the fade animation.
I submitted a bug report. Which is actually a dupe.
.dblclick()