Skip to content

Don't auto-focus search input on page load #10480

@b0o

Description

@b0o

Current Behavior

On crate pages (e.g. https://crates.io/crates/tokio), the search input field is automatically focused on page load, stealing focus from keyboard-based navigation tools which the user may have configured. This can be a mild annoyance to users of assistive tools and those with keyboard-centric workflows. It arguably does not provide much value to other users who can easily focus the search input by pressing S or /.

Expected Behavior

The input should not be auto-focused on page load.

Steps To Reproduce

No response

Environment

  • Browser:
  • OS:

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions