Windows 10 Tablet Browser: soft keyboard very buggy
<p>I have a tablet html app. Some pages have <code>&lt;input&gt;</code> and <code>&lt;textarea&gt;</code> together with many other elements: links, menus, texts, ...</p>

<ul>
<li>If I don't press any <code>&lt;input&gt;</code> or <code>&lt;textarea&gt;</code> everything works ok</li>
<li>As soon as I press one input element, the soft keyboard pops up (as expected).</li>
<li>After entering some text and hiding the keyboard, <strong>the keyboard pops up again everytime I click anywhere on the webapp</strong> (even in non-focusable elements)</li>
</ul>

<p>This totally ruins the experience, as you are forced to use the web app with the keyboard always shown.</p>

<p>I have tried many different approaches to manipulate the input focus without any success, like calling <code>blur()</code>, <code>focus()</code> and related methods on the focused component, containers, window ... but seems nothing but reloading the page resets the keyboard state to keep hidden again until a focusable element is tapped. </p>

<p>My experiments:</p>

<ul>
<li><p>Checked that pressing outside of the <code>&lt;INPUT&gt; / &lt;TEXTAREA&gt;</code> causes the focus to be removed: <code>onblur()</code> gets called, and <code>document.activeElement</code> returns NULL. </p></li>
<li><p>Also tried to manually <code>blur()</code> everything in the document after an <code>onchange</code> is triggered:<code>$("input,textarea").blur()</code> .  </p></li>
<li><p>Tried to manually giving the <code>focus()</code> to a non-interactive element with a TABINDEX (hacky):</p>

<pre><code>&lt;div id="dummyfocus" tabindex="0"&gt;
$("#dummyfocus").focus()
</code></pre></li>
<li><p>I checked that the dummy element in fact receives focus, the <code>input/textarea</code> unfocuses, but even in this case, the problem persists.</p></li>
</ul>

<p>In Android or IOS everything works as expected: Keyboard will not auto-show if no <code>&lt;input&gt;</code> or <code>&lt;textarea&gt;</code> is focused.</p>

<p>Any advice? Any funky microsoft-proprietary css tag I haven't heard about? :)</p>