Skip to content

Add autoFocus support to FilterPanel search input #244

Description

@cratis-direct

The FilterPanel's inline search box would benefit from an autoFocus property on FilterDefinition to auto-focus the search input when a filter group is expanded.

This would enable UX patterns where users can open a filter facet and immediately start typing to search (e.g., in the Stagehand Backlog, the repository filter would auto-focus its search when opened).

Suggested implementation:

  • Add optional autoFocus?: boolean to FilterDefinition interface
  • When a filter with autoFocus=true is expanded, add autoFocus attribute to the OptionList's search input

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions