Can't figure out how to properly change the click behavior on Bootstrap 3 dropdown menus. I'm basically using the dropdown as an ad-hoc input where users can type a name and then submit. However, if they click on the input text field it closes the dropdown before anything can be typed.
The goal is to only programatically close the dropdown, although it still requires the data-toggle attribute which is persisting the standard behavior.

Here's the code for the dropdown:
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-flask icon-3x"></i>
</button>
<ul class="dropdown-menu heatmap-options" role="menu">
<li><label>Formula </label><input type="text" placeholder="type a formula name" /></li>
<li class="divider"></li>
<li><a href="javascript:;" class="btn btn-primary btn-sm">Create</a></li>
</ul>
</div>
I'm not sure whether I need to do some Javascript intervention, restructure this entirely, or if there's some "option" I don't know about that I can use for this. Appreciate the help!