Jquery 单击“外部”时日历未关闭

Jquery 单击“外部”时日历未关闭,jquery,ipad,datepicker,jquery-ui-datepicker,Jquery,Ipad,Datepicker,Jquery Ui Datepicker,我有以下datepicker代码: $(".datepicker").datepicker({ showOn: "button", buttonImage: "/Content/images/calendar.png", buttonImageOnly: true, buttonText:"Calendar", beforeShow: function (textbox, instance) {

我有以下datepicker代码:

$(".datepicker").datepicker({
        showOn: "button",
        buttonImage: "/Content/images/calendar.png",
        buttonImageOnly: true,
        buttonText:"Calendar",
        beforeShow: function (textbox, instance) {
            instance.dpDiv.css({
                marginTop: (-textbox.offsetHeight) + 'px',
                marginLeft: textbox.offsetWidth + 'px'
            });
        },
        minDate: 0
    });

问题在于,在iPad上(在Galaxy选项卡上,一切正常),当单击日历的外部时,它不会关闭。如何解决此问题?

尝试将UIPicker的属性设置为“设置隐藏:是”