<p dir="auto">The workaround was added in <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/openstreetmap/openstreetmap-website/commit/9cc9a0098840363b6497337951b53aa583f4aa44/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/commit/9cc9a0098840363b6497337951b53aa583f4aa44"><tt>9cc9a00</tt></a>. It uses <a href="https://api.jquery.com/focus-shorthand/" rel="nofollow">deprecated .focus() jQuery function</a>.</p>
<p dir="auto">It's also not necessary because <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus#browser_compatibility" rel="nofollow">browsers supported autofocus on input for a long time</a>. Except maybe on iOS but we may not want anything to happen on mobile devices. In fact I'm going to do another pull request that prevents virtual keyboard from popping up on certain focus operations.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5899'>https://github.com/openstreetmap/openstreetmap-website/pull/5899</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5899/commits/9d49cc198bf475e9b677b57c012c6ef3a568262b" class="commit-link">9d49cc1</a>  Remove search input autofocus workaround for old browsers</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5899/files">1 file</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5899/files#diff-cdc070ced1c4000efd1e28357fd26b2fd617d7fccfeae0324222231db75dd6ee">app/assets/javascripts/index.js</a>
    (3)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5899.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5899.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5899.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5899.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5899">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLN2ZDZLWYFR2LY6UE32YEE5FAVCNFSM6AAAAAB2RTBH6OVHI2DSMVQWIX3LMV43ASLTON2WKOZSHE3TIOBYHAZDMMA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLIPJWSOGNVRSNTXMDT2YEE5FA5CNFSM6AAAAAB2RTBH6OWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHLCUJRIQ.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5899</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5899",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5899",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>