fix: don't show dropdown if there are no results
This commit is contained in:
@@ -106,7 +106,7 @@ export const AutocompleteTagInput = observer(({ appState }: Props) => {
|
|||||||
onFocus={onFocus}
|
onFocus={onFocus}
|
||||||
onKeyDown={onKeyDown}
|
onKeyDown={onKeyDown}
|
||||||
/>
|
/>
|
||||||
{dropdownVisible && (
|
{dropdownVisible && (autocompleteTagResults.length > 0 || autocompleteTagHintVisible) && (
|
||||||
<DisclosurePanel
|
<DisclosurePanel
|
||||||
ref={dropdownRef}
|
ref={dropdownRef}
|
||||||
className="sn-dropdown w-80 flex flex-col py-2 absolute"
|
className="sn-dropdown w-80 flex flex-col py-2 absolute"
|
||||||
|
|||||||
Reference in New Issue
Block a user