title: How can I keep the Bootstrap dropdown visable when user selects an autocomplete value from input field?
body: <p>I'm using the Bootstrap dropdown as an login possibility on a homepage. The dropdown div contains the username &amp; password field. It works well, but when a user selects an option from the (browser) autocomplete functionality, the dropdown loses focus and disappears.</p>
  
  <p>How can I keep the dropdown visable when a user selects an autocomplete option?</p>
  
  <p>This is my code:</p>
  
  <pre><code>&lt;div class="dropdown-menu user-actions-menu pull-right clearfix" role="menu"&gt;
  &lt;form method="POST" action="/login" accept-charset="UTF-8" role="form"&gt;
  
  &lt;div class="form-group"&gt;
      &lt;input placeholder="E-mail adres" class="form-control input-lg" type="text" required="required" name="email"&gt;
  &lt;/div&gt;
  &lt;div class="form-group"&gt;
      &lt;input placeholder="Type hier je wachtwoord" class="form-control input-lg" required="required" name="password" type="password" value=""&gt;
      &lt;span class="help-block pull-right"&gt;&lt;a href="account/wachtwoord-vergeten"&gt;Wachtwoord vergeten?&lt;/a&gt;&lt;/span&gt;
  &lt;/div&gt;
  
  &lt;div class="form-group" style="clear:right;"&gt;
      &lt;input name="remember" type="hidden" value="1"&gt;   
      &lt;input class="btn btn-custom btn-flat btn-block" type="submit" value="Inloggen"&gt;
  &lt;/div&gt;
  &lt;/form&gt; 
  &lt;/div&gt;
  </code></pre>
  
  <p>I've added some pictures to make it clearer:</p>
  
  <p>1: dropdown opens when someone hovers over 'inloggen' (= Dutch for login):</p>
  
  <p><img src="https://i.stack.imgur.com/vAL94.png" alt="enter image description here"></p>
  
  <p>2: Someone has entered an emailaddress before, so the browser gives this as an option:</p>
  
  <p><img src="https://i.stack.imgur.com/EYh2m.png" alt="enter image description here"></p>
  
  <p>3: Users hovers over the option with the mousepointer and BAM: the dropdown disappears (because it has lost hover of the mouse):</p>
  
  <p><img src="https://i.stack.imgur.com/UpMdU.png" alt="enter image description here"></p>