Updating to latest JQuery UI and datepicker is causing the datepicker to always be seen

六眼飞鱼酱① 提交于 2019-12-01 16:14:25

I've had this same bug for a while and just got around to looking at it tonight. I'm not sure why this bug occurs, but the following is what I've done to eliminate the visual artifact on the screen. Right after you create your datepicker(s), execute the following:

$('#ui-datepicker-div').css('display','none');

Caveat: When I look at the dom generated by Safari and step through the code that creates the datepicker, the code above appears to do nothing to the dom, but it does hide the visual affect on the screen.

I prefer to fix this with CSS:

#ui-datepicker-div {
   display: none;
}

it happens to me as well, I have jquery and Keith-Wood datepicker (http://keith-wood.name/datepick.html) libraries at the same html. I try to use #ui-datepicker-div {display: none;} as mentioned above but it fixed the problem but it made the Keith-Wood datepicker disappear as well.

I am using jquery 1.8.2 , jquery-ui.js (1.10.2), and even theme also 1.10.2. So I change jquery-ui and the theme back to 1.8.2 which is same version as the jquery.js. it fixed the problem, the grey line didn't appear anymore. I think the better solution is to use same version for all jquery libraries

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!