mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-02-05 02:55:03 -05:00
Fixed #3858 - Datepicker not hiding consistently on external click
This commit is contained in:
@@ -1594,8 +1594,8 @@ $.fn.datepicker = function(options){
|
||||
|
||||
/* Initialise the date picker. */
|
||||
if (!$.datepicker.initialized) {
|
||||
$(document.body).append($.datepicker.dpDiv).
|
||||
mousedown($.datepicker._checkExternalClick);
|
||||
$(document).mousedown($.datepicker._checkExternalClick).
|
||||
find('body').append($.datepicker.dpDiv);
|
||||
$.datepicker.initialized = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user