Skip to content

Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.

Fix: Combobox filter issue

Khuram Niaz1ab477eb6e64
diff --git a/e2e/add-job.spec.ts b/e2e/add-job.spec.ts
index 2e4a877..6e9fa0b 100644
--- a/e2e/add-job.spec.ts
+++ b/e2e/add-job.spec.ts
@@ -33,7 +33,7 @@ async function createNewJob(page: Page, jobText: string) {
if (await jobTitle.isVisible()) {
await jobTitle.click();
} else {
- await page.getByText(jobText).click();
+ await page.getByText(jobText, { exact: true }).click();
}
await expect(page.getByLabel("Job Title")).toContainText(jobText);
await page.getByLabel("Company").click();
diff --git a/src/components/ComboBox.tsx b/src/components/ComboBox.tsx
index f6e20da..bb74a19 100644
--- a/src/components/ComboBox.tsx
+++ b/src/components/ComboBox.tsx
@@ -97,7 +97,7 @@ export function Combobox({ options, field, creatable }: ComboboxProps) {
</FormControl>
</PopoverTrigger>
<PopoverContent className="md:w-[240px] lg:w-[280px] p-0">
- <Command>
+ <Command filter={(value, search) => (value.includes(search) ? 1 : 0)}>
<CommandInput
value={newOption}
onValueChange={(val: string) => setNewOption(val)}