My custom bootstrap dropdown design
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
Dropdown
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
</div>
I wanted to add draggable functionality using jQuery UI:
$('.dropdown').draggable();
However, I encountered a problem where I can only drag the dropdown when the menus are visible, not hidden. Additionally, I am unable to drag from the button itself, only from within the dropdown menu.
If anyone could help me understand the issue and suggest a solution, I would greatly appreciate it.