*My requirement* : I am working on a twitter bootstrap button dropdown (
http://twitter.github.io/bootstrap/components.html#buttonDropdowns) and 
using bootstrap-datepicker (
http://eternicode.github.io/bootstrap-datepicker/#examples) in one of the 
list items as shown in below image.

<https://lh5.googleusercontent.com/-_2gY-2QAaUo/UdZIEnegByI/AAAAAAAAHsI/OZxgpG1XSUs/s483/1.JPG>

As per my requirement, I need to have month calendar in last item and 
clicking on that opens the bootstrap-datepicker and I should be able to 
select month & year.

*Problem I am facing* : When I open that datepicker and select any month or 
year or click on any of the navigation in datepicker to move to another 
month or year, the button drop down hides, but the datepicker remains there 
as in the below image. I have been trying but not able to get it working.

<https://lh6.googleusercontent.com/-PgEUhLLOT6U/UdZIQPQLNZI/AAAAAAAAHsQ/1ntvagn4LA8/s465/2.JPG>

*What I think* (not sure its correct or not) : When I click on datepicker, 
it is being attached to the body element directly where as all the list 
items and thier children are deep down in html. So, even if i try to stop 
event propagation for any click inside dropdown, it wont count for 
datepicker, as it is appended to body. ( Just for more info I have some 
actions defined on click of other list items)

Would really appreciate if someone could help me out with this, I really 
need to get this thing working for my project.

-- 
You received this message because you are subscribed to the Google Groups 
"twitter-bootstrap" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to