Skip to content

Commit 1626c97

Browse files
committed
Datepicker: Changed body selector to document.body. Fixed #8464 - Datepicker does not properly scope the body selector.
1 parent bfec28e commit 1626c97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.datepicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1818,7 +1818,7 @@ $.fn.datepicker = function(options){
18181818
/* Initialise the date picker. */
18191819
if (!$.datepicker.initialized) {
18201820
$(document).mousedown($.datepicker._checkExternalClick).
1821-
find('body').append($.datepicker.dpDiv);
1821+
find(document.body).append($.datepicker.dpDiv);
18221822
$.datepicker.initialized = true;
18231823
}
18241824

0 commit comments

Comments
 (0)