Skip to content

Issue with location field autocompletion #106

Open

Description

@1Biru

When typing a city name in the location field while adding a job, there are times where I can't add a city because its name is part of another city name.

For example, if I have added the location "Something-CityA", I cannot add "CityA" as another location as it autocompletes to "Something-CityA".

Where I am from, it is common to have the name of a city be part of the name of another city, so it would be great if the button to create a new location is still there when typing a name which is in another one.

Activity

  1. frank-mendez commented on Aug 26, 2026

    @frank-mendez

    Confirmed and fixed in PR #108: #108

    The bug was caused by the Create action being rendered through cmdk CommandEmpty, which disappears whenever an existing option matches by substring. The fix keeps a Create command item visible for non-exact matches while preserving exact-match selection, with regression coverage for Something-CityA and CityA.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions