Override jQuery UI Datepicker div visible strangely on first page load.

前端 未结 7 1527
时光取名叫无心
时光取名叫无心 2020-12-16 10:02

Something strange afoot, here:

An instance of Datepicker is showing up in a weird place as a single bar in the upper left hand corner of this page.

I\'m usin

7条回答
  •  再見小時候
    2020-12-16 10:26

    I had the same problem and while some of the above solutions work, the easiest fix of all is to add this to your css:

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

    This basically hides the realigned datepicker element when it cannot be binded to an existing invisible element. You hide it, but it will be initialized again when you click on an element that needs to display the datepicker. Upon re-initialization, the datepicker element with id #ui-datepicker-div will have the correct position.

提交回复
热议问题