Skip to content

Prevent search input auto focus on touch device

Warren Gifford requested to merge jeanduplessis/search-autofocus-mobile into main

Created by: jeanduplessis

We want to prevent autofocus by default on touch screens as it results in the device keyboard not showing until the input loses focus and gets focused by the user again.

Relates to conversation in #feedback-dogfood

Test plan

  1. Go to /search on mobile device (or put Developer Tools in mobile mode).
  2. When loading the page the search input should not be focused automatically.

App preview:

Check out the client app preview documentation to learn more.

Merge request reports

Loading