twitter/bootstrap — Issue #1342: Dropdown stuck open on wip-2.0
Author: marcelow
Created: 2012-01-28 13:00:42+00:00
State: open

Hi! I am migrating an existing application from the previous stable bootstrap to wip-2.0 and the dropdown nav is stuck open after you click it. This happens only when you initialize the component by javascript - it works perfectly when I use the data-* API.

I haven't had the time to make a thorough investigation of the problem, but after a little messing around with JS files I can see that the 'toggle' element on the bootstrap-popover plugin doesn't refer to the correct DOM element if you initialize it by javascript.

I have copied the code from the bootstrap 2.0 docs and used a bare bones application just to make sure. Hope to have helped!

Cheers!