title: Hovering autocomplete suggestion makes element disapear
body: <p>I have a login form which shows itselfs when you hover over a link. So basicly, when you hover <code>a</code>, the form updates its rule <code>display: none</code> to <code>display: block</code></p>
  
  <p>When I start to fill the fields, the browser shows suggestions based on earlier inputs. But when I want to select the suggestion, the <code>element</code> sets itself to <code>display: none</code> again.</p>
  
  <p>I don't want to set the <code>autocomplete="off"</code>.</p>
  
  <p><strong><em>Suggestion shows itself</em></strong><br/>
  <a href="https://i.stack.imgur.com/IdtYK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IdtYK.png" alt="enter image description here"></a></p>
  
  <p><strong><em>Whole form disappears when hovering the suggestion</em></strong><br/>
  <a href="https://i.stack.imgur.com/HnYcs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HnYcs.png" alt="enter image description here"></a></p>
  
  <p><strong><em>Demonstration</em></strong>
  <div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>* {
    box-sizing: border-box;
  }
  
  form {
    display: none;
  }
  
  div:hover form {
    background-color: #f1f1f1;
    display: block;
    padding: 15px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;p&gt;Fill in a sample username and password, after that you get an fiddle error. Just reload the fiddle and then the autocomplete shows you suggestions&lt;/p&gt;
  
  &lt;div class="hover"&gt;
    &lt;span&gt;HOVER TO SHOW LOGIN FORM&lt;/span&gt;
    &lt;form method="post"&gt;
      &lt;input type="text" id="username" name="username" placeholder="username" /&gt;
      &lt;input type="password" id="password" name="password" placeholder="password" /&gt;
      &lt;input type="submit" name="login" value="login" /&gt;
    &lt;/form&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>How can I prevent this behaviour?</p>