Skip to content
Snippets Groups Projects

Prevent search input auto focus on touch device

Merged 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
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading