Skip to content

Issue assignee picker search fails when the query has leading or trailing spaces #43581

Done

Description

@AymanKhan9

Bug

In the web issue detail panel (apps/web/src/components/issue/IssueDetailPanel.tsx), searching in the Change assignees picker (IssueAssigneePicker) with leading or trailing spaces (for example " alice " after pasting a handle) returns no matches.

Cause

IssueAssigneePicker computes const needle = query.toLowerCase() at apps/web/src/components/issue/IssueDetailPanel.tsx:253 without .trim(), unlike the sibling IssueLabelPicker in the same file (fixed in #43327) and mobile's IssueAssigneesScreen.tsx.

Expected behavior

Leading and trailing whitespace in the issue assignee picker search input should be ignored when matching candidate logins and names, matching IssueLabelPicker and mobile.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions