File tree Expand file tree Collapse file tree
apps/dashboard/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments