Skip to content

Commit 99d31ef

Browse files
committed
wip
1 parent 4b50b26 commit 99d31ef

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

apps/dashboard/src/components/select-attachment.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,8 @@ export function SelectAttachment({
5252
onSelect(item);
5353
};
5454

55-
// Only create options if we have items and should show results
5655
const hasResults = items && items.length > 0;
57-
// Only show results when actively searching or when combobox is open AND user has typed something
58-
// Don't show suggestions when just focusing the input
59-
const shouldShowResults = isOpen && Boolean(debouncedValue) && hasResults;
56+
const shouldShowResults = isOpen && hasResults;
6057

6158
const options = hasResults
6259
? items.map((item, index) => {
@@ -190,7 +187,7 @@ export function SelectAttachment({
190187
...opt,
191188
name: opt.name!,
192189
}))}
193-
isLoading={isLoading && Boolean(debouncedValue)} // Only show loading when actively searching
190+
isLoading={isLoading}
194191
classNameList="mt-2 max-h-[161px]"
195192
open={shouldShowResults} // Only open when we should show results
196193
onOpenChange={setIsOpen}

0 commit comments

Comments
 (0)