uxsolutions / bootstrap-datepicker

A datepicker for twitter bootstrap (@twbs)
Apache License 2.0
12.67k stars 6.06k forks source link

detach() in hide function make the popup only works for the first time #1630

Open investorguide-hao opened 9 years ago

investorguide-hao commented 9 years ago

i have been debugging this for hours, i am using (no bootstrap js) jquery1.7.2, 1.5.0/js/bootstrap-datepicker.js, 1.5.0/css/bootstrap-datepicker.standalone.css

First time popup works as expected, after i click outside to hide it, later popups only show an empty div, calendar itself is empty. After I remove the detach() in hide function, it works fine. I wonder if it's my own code cause it or its something else.

Azaret commented 9 years ago

Looks like it is working well, even with jQuery 1.7.2: https://jsfiddle.net/wmbsjg13/1/ What's your options ? How do you instantiate the picker ?