Dropdown does not disappear if used with modal window
I have simple dropdown that opens modal window if menu link is clicked. All works fine except dropdown context menu does not disappear after item is clicked, only when you click on modal window context menu would disappear. here is example code:
<div class="btn-group">
<a class="btn" href="#">Action</a>
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="/edit/123/" rel="modal"><i class="icon-pencil"></i> Edit</a></li>
<!-- more menu links -->
</ul>
</div>
Here how does it look:
You'll have to manually close the dropdown as you fire the modal. The reason is clears on click of the modal is that we watch for you to click on anything outside the menu to close it. There is no automatic close.
I meet the same problem and can't find a way to let the dropdown menu items disappear automaticly, any update for this?
Clearly, if there's been no activity in this 3 year old closed issue, and no changes to the contrary in our documentation...the advice remains the same: once you do custom things like this, you'll need to add your own specific handling code yourself.